mirror of
https://github.com/eliasstepanik/voxel-simulation.git
synced 2026-01-11 13:58:30 +00:00
Small Fixes to try and improve performance
This commit is contained in:
parent
5fa3af97db
commit
959bb96752
@ -19,7 +19,7 @@ pub fn setup(
|
|||||||
// 2. Generate sphere in parallel, dropping the cloned Arc inside the function
|
// 2. Generate sphere in parallel, dropping the cloned Arc inside the function
|
||||||
let color = Color::rgb(0.2, 0.8, 0.2);
|
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
|
// 4. Spawn entity with both Transform and the real octree component
|
||||||
commands.entity(root.0).with_children(|parent| {
|
commands.entity(root.0).with_children(|parent| {
|
||||||
|
|||||||
@ -34,6 +34,5 @@ pub fn update_chunk_lods(
|
|||||||
|
|
||||||
for key in changed {
|
for key in changed {
|
||||||
tree.dirty_chunks.insert(key);
|
tree.dirty_chunks.insert(key);
|
||||||
tree.mark_neighbors_dirty_from_key(key);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user