From 959bb967525566a9f28a31e18943529974121de6 Mon Sep 17 00:00:00 2001 From: Elias Stepanik Date: Mon, 9 Jun 2025 13:33:37 +0200 Subject: [PATCH] Small Fixes to try and improve performance --- client/src/plugins/environment/systems/voxel_system.rs | 2 +- client/src/plugins/environment/systems/voxels/lod.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/plugins/environment/systems/voxel_system.rs b/client/src/plugins/environment/systems/voxel_system.rs index 1bacfdd..66948e5 100644 --- a/client/src/plugins/environment/systems/voxel_system.rs +++ b/client/src/plugins/environment/systems/voxel_system.rs @@ -19,7 +19,7 @@ pub fn setup( // 2. Generate sphere in parallel, dropping the cloned Arc inside the function let color = Color::rgb(0.2, 0.8, 0.2); - generate_voxel_sphere(&mut octree, 100, color); + generate_voxel_sphere(&mut octree, 110, color); // 4. Spawn entity with both Transform and the real octree component commands.entity(root.0).with_children(|parent| { diff --git a/client/src/plugins/environment/systems/voxels/lod.rs b/client/src/plugins/environment/systems/voxels/lod.rs index 95c143e..f8360c5 100644 --- a/client/src/plugins/environment/systems/voxels/lod.rs +++ b/client/src/plugins/environment/systems/voxels/lod.rs @@ -34,6 +34,5 @@ pub fn update_chunk_lods( for key in changed { tree.dirty_chunks.insert(key); - tree.mark_neighbors_dirty_from_key(key); } }