Skip to content

Commit 74dbec8

Browse files
committed
Fix fallback, Merge packed tile updates in non-SAB mode
1 parent 5fdf152 commit 74dbec8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/client/ClientGameRunner.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,10 +732,13 @@ export class ClientGameRunner {
732732
combinedPackedTileUpdates.push(BigInt(ref));
733733
}
734734
} else {
735-
// Non-SAB mode: count tile updates from batch
735+
// Non-SAB mode: merge packed tile updates from batch
736736
let totalTileUpdates = 0;
737737
for (const gu of batch) {
738738
totalTileUpdates += gu.packedTileUpdates.length;
739+
for (const tu of gu.packedTileUpdates) {
740+
combinedPackedTileUpdates.push(tu);
741+
}
739742
}
740743
tileMetrics.count = totalTileUpdates;
741744
}

0 commit comments

Comments
 (0)