bevy/crates/bevy_ui/src/layout
Aevyrie f22d93c90f
Transform Propagation Optimization: Static Subtree Marking (#18093)
# Objective

- Optimize static scene performance by marking unchanged subtrees.

## Solution

- Mark hierarchy subtrees with dirty bits to avoid transform propagation
where not needed
- This causes a performance regression when spawning many entities, or
when the scene is entirely dynamic.
- This results in massive speedups for largely static scenes.
- In the future we could allow the user to change this behavior, or add
some threshold based on how dynamic the scene is?

## Testing

- Caldera Hotel scene
2025-03-09 19:29:01 +00:00
..
convert.rs Remove the min and max fields from LayoutContext. (#16459) 2024-12-03 19:39:45 +00:00
debug.rs Store UI render target info locally per node (#17579) 2025-02-10 07:27:58 +00:00
mod.rs Transform Propagation Optimization: Static Subtree Marking (#18093) 2025-03-09 19:29:01 +00:00
ui_surface.rs Store UI render target info locally per node (#17579) 2025-02-10 07:27:58 +00:00