don't require chunks to intersect the clip sphere when searching for loading chunks
@@ -128,21 +128,11 @@ where
});
});
- while let Some(ChunkSphere {
- key: node_key,
- closest_dist_to_observer,
- ..
- }) = candidate_heap.pop()
- {
+ while let Some(ChunkSphere { key: node_key, .. }) = candidate_heap.pop() {
if num_load_slots >= load_chunk_budget {
break;
}
- let node_intersects_clip_sphere = closest_dist_to_observer < clip_sphere.radius;
- if !node_intersects_clip_sphere {
- continue;
- }
-
if node_key.lod == 0 {
// We hit LOD0 so this chunk needs to be loaded.
rx(node_key);
