BlueGit

timfa frameworkv3

Remove noisy Image loaded console log from image constructor.

Texture wraps are created frequently for canvas atlases; logging each one spammed the console without aiding debugging.

timfa Tim Falken · pushed by timfa

Authored 2026-08-28 · 2 months ago

Hash
417815da13d52ae7e06b3ce82a15152b5f101cd0
Parent
8dd31a0e
1 file changed +0 −2
framework/engine/image.js +0 −2
@@ -26,8 +26,6 @@ class image
26 26 // Keep the Image out of the DOM — canvas can draw from it directly.
27 27 if (image && image.style)
28 28 { image.style.display = "none"; }
29
30 console.log("Image loaded: " + (image && image.src ? image.src : ""));
31 29 }
32 30
33 31 draw (scene, dx, dy, dw, dh, rotation, mirrorX, mirrorY, alpha, subImage, shader, uniforms, textures, lights)
@@ -26,8 +26,6 @@ class image
26 // Keep the Image out of the DOM — canvas can draw from it directly.
26 // Keep the Image out of the DOM — canvas can draw from it directly.
27 if (image && image.style)
27 if (image && image.style)
28 { image.style.display = "none"; }
28 { image.style.display = "none"; }
29
30 console.log("Image loaded: " + (image && image.src ? image.src : ""));
31 }
29 }
32
30
33 draw (scene, dx, dy, dw, dh, rotation, mirrorX, mirrorY, alpha, subImage, shader, uniforms, textures, lights)
31 draw (scene, dx, dy, dw, dh, rotation, mirrorX, mirrorY, alpha, subImage, shader, uniforms, textures, lights)