Skip to content

Commit 95fbcca

Browse files
committed
chore: 移除渲染系统调试日志
1 parent a61baa8 commit 95fbcca

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

packages/ecs-engine-bindgen/src/core/EngineBridge.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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),

packages/ecs-engine-bindgen/src/systems/EngineRenderSystem.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)