Skip to content

Commit e57781a

Browse files
committed
add perf comment
1 parent eb66e78 commit e57781a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/bevy_transform/src/hierarchy/hierarchy_maintenance_system.rs

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ pub fn parent_update_system(
4949
// `children_additions`).
5050
if let Ok(mut new_parent_children) = children_query.get_mut(parent.0) {
5151
// This is the parent
52+
// PERF: Ideally we shouldn't need to check for duplicates
5253
if !(*new_parent_children).0.contains(&entity) {
5354
(*new_parent_children).0.push(entity);
5455
}

0 commit comments

Comments
 (0)