Skip to content

Commit 9b01943

Browse files
committed
missing comments
1 parent a75b29e commit 9b01943

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

crates/re_space_view_spatial/src/heuristics.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ pub fn auto_spawn_heuristic(
2828
.space_view_class_registry
2929
.get_system_registry_or_log_error(class)
3030
.new_part_collection();
31+
32+
// Gather all systems that advertise a "preferred view kind" matching the passed in kind.
3133
let system_names_with_matching_view_kind = parts
3234
.iter_with_names()
3335
.filter_map(|(name, part)| {
@@ -38,6 +40,8 @@ pub fn auto_spawn_heuristic(
3840
})
3941
.collect::<Vec<_>>();
4042

43+
// For each of the system with the matching "preferred view kind", count the entities involved.
44+
// We tally this up for scoring.
4145
for system_name in system_names_with_matching_view_kind {
4246
if per_system_entities
4347
.get(&system_name)

0 commit comments

Comments
 (0)