Skip to content

Propagation requires full hierarchy traversal #7840

@james7132

Description

@james7132

What problem does this solve or what need does it fill?

Both visibility and transform propagation require full hierarchy traversals to complete. This is required even if there are no changed components in the hierarchy.

This may be useful in very large worlds with deep hierarchies where the vast majority of the entities in the World are unchanging parts of the environment.

What solution would you like?

A user-facing way of marking static parts of the hierarchy. Perhaps a Static marker component in which halts all propagation systems, forcing it and all it's descendants to be ignored during propagation.

These components can also be flags for rendering and physics for things you generally expect to not change over the lifetime of the app after loading.

What alternative(s) have you considered?

Continue with the status quo.

Additional context

Other engines seem to have a similar concept:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PhysicsCollisions, kinematics, forces and moreA-RenderingDrawing game state to the screenA-TransformTranslations, rotations and scalesC-FeatureA new feature, making something new possibleC-PerformanceA change motivated by improving speed, memory usage or compile times

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions