diff --git a/src/core/GameRunner.ts b/src/core/GameRunner.ts index 8908e8927..9869ec07c 100644 --- a/src/core/GameRunner.ts +++ b/src/core/GameRunner.ts @@ -186,14 +186,13 @@ export class GameRunner { let packedTileUpdates: BigUint64Array; const tileUpdates = updates[GameUpdateType.Tile]; if (this.tileUpdateSink !== undefined) { - if (tileUpdates.length > 0) { - console.log("[GameRunner] tile updates for tick", this.game.ticks(), { - count: tileUpdates.length, - }); - } + const seenTiles = new Set(); for (const u of tileUpdates) { const tileRef = Number(u.update >> 16n) as TileRef; - this.tileUpdateSink(tileRef); + if (!seenTiles.has(tileRef)) { + seenTiles.add(tileRef); + this.tileUpdateSink(tileRef); + } } packedTileUpdates = new BigUint64Array(); } else {