File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed
packages/ecs-engine-bindgen/src Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ export class EngineBridge implements IEngineBridge {
7070 private lastFrameTime = 0 ;
7171 private frameCount = 0 ;
7272 private fpsAccumulator = 0 ;
73- private debugLogged = false ;
7473
7574 /**
7675 * Create a new engine bridge.
@@ -238,13 +237,6 @@ export class EngineBridge implements IEngineBridge {
238237 this . colorBuffer [ i ] = sprite . color ;
239238 }
240239
241- // Debug: log texture IDs only once when we have 2+ sprites (for multi-texture test)
242- if ( ! this . debugLogged && count >= 2 ) {
243- const textureIds = Array . from ( this . textureIdBuffer . subarray ( 0 , count ) ) ;
244- console . log ( `TS submitSprites: ${ count } sprites, textureIds: [${ textureIds . join ( ', ' ) } ]` ) ;
245- this . debugLogged = true ;
246- }
247-
248240 // Submit to engine (single WASM call) | 提交到引擎(单次WASM调用)
249241 this . getEngine ( ) . submitSpriteBatch (
250242 this . transformBuffer . subarray ( 0 , count * 7 ) ,
Original file line number Diff line number Diff line change @@ -142,9 +142,6 @@ export class EngineRenderSystem extends EntitySystem {
142142 let textureId = 0 ;
143143 if ( sprite . texture ) {
144144 textureId = this . bridge . getOrLoadTextureByPath ( sprite . texture ) ;
145- } else {
146- // Debug: sprite has no texture
147- console . warn ( `[EngineRenderSystem] Entity ${ entity . id } has no texture` ) ;
148145 }
149146
150147 // Pass actual display dimensions (sprite size * transform scale)
You can’t perform that action at this time.
0 commit comments