Client side chunk sections

This commit is contained in:
2026-11-07 10:39:16 -03:00
parent 8e14e9842a
commit 71cbf901a5
19 changed files with 162 additions and 116 deletions
+1 -2
View File
@@ -261,8 +261,7 @@ export class RenderBenchmark {
const start = performance.now();
while (built < chunks.length && performance.now() - start < BUILD_MS_PER_FRAME) {
const [x, z] = chunks[built++];
const { blocks, biomes } = terrain.chunk(x, z);
this.#level.set_chunk(x, z, blocks, biomes);
this.#level.set_chunk(terrain.chunk(x, z));
}
this.#build_ms += performance.now() - start;
this.status = `building the level, ${Math.floor(built / chunks.length * 100)}%`;