Children is been added twice #889
Labels
A-ECS
Entities, components, systems, and events
C-Bug
An unexpected or incorrect behavior
C-Performance
A change motivated by improving speed, memory usage or compile times
Bevy version
0.3 (commit fae6287)
Operating system & version
Fedora 31
What you did
Spawn a scene with a hierarchy
What actually happened
Each children will be added twice to it's parent
Children
component, this causes a massive slowdown caused by thetransform_propagate_system
witch will then need to update each node hierarchy multiple times.Additional information
I propose 3 things:
Children
smallvec so it won't get serialized once it get's transformed into a SceneChildren
componentpub(create)
and adding aimpl Deref<Target = [Entity]> for Children
. If the used change this children component the side effects will be devastatingThe text was updated successfully, but these errors were encountered: