Skip to content

Commit 04a0041

Browse files
committed
Fix fallback, Merge packed tile updates in non-SAB mode
1 parent 1e3d2e1 commit 04a0041

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
@@ -722,10 +722,13 @@ export class ClientGameRunner {
722722
combinedPackedTileUpdates.push(BigInt(ref));
723723
}
724724
} else {
725-
// Non-SAB mode: count tile updates from batch
725+
// Non-SAB mode: merge packed tile updates from batch
726726
let totalTileUpdates = 0;
727727
for (const gu of batch) {
728728
totalTileUpdates += gu.packedTileUpdates.length;
729+
for (const tu of gu.packedTileUpdates) {
730+
combinedPackedTileUpdates.push(tu);
731+
}
729732
}
730733
tileMetrics.count = totalTileUpdates;
731734
}

0 commit comments

Comments
 (0)