Fix fallback, Merge packed tile updates in non-SAB mode

This commit is contained in:
scamiv
2025-12-08 19:12:05 +01:00
parent a4094de3a7
commit fe927b9758
+4 -1
View File
@@ -738,10 +738,13 @@ export class ClientGameRunner {
combinedPackedTileUpdates.push(BigInt(ref));
}
} else {
// Non-SAB mode: count tile updates from batch
// Non-SAB mode: merge packed tile updates from batch
let totalTileUpdates = 0;
for (const gu of batch) {
totalTileUpdates += gu.packedTileUpdates.length;
for (const tu of gu.packedTileUpdates) {
combinedPackedTileUpdates.push(tu);
}
}
tileMetrics.count = totalTileUpdates;
}