Client side chunk sections
This commit is contained in:
@@ -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)}%`;
|
||||
|
||||
Reference in New Issue
Block a user