improve blocks.set performance

This commit is contained in:
MihailRis
2025-08-16 12:48:42 +03:00
parent 73f589d479
commit 6af74fc219
6 changed files with 18 additions and 14 deletions
+3
View File
@@ -171,6 +171,9 @@ const Mesh<ChunkVertex>* ChunksRenderer::retrieveChunk(
if (mesh == nullptr) {
return nullptr;
}
if (chunk->flags.dirtyHeights) {
chunk->updateHeights();
}
if (culling) {
glm::vec3 min(chunk->x * CHUNK_W, chunk->bottom, chunk->z * CHUNK_D);
glm::vec3 max(