Commit 738b147
Add
# Objective
- Add dedicated benchmarks for `bevy_transform`'s propagation systems to
catch performance regressions.
## Solution
**Benchmarks** (`benches/benches/bevy_transform/propagate.rs`):
Added small benchmarks targeting each stage of the propagation pipeline
individually.
- `mark_dirty_trees` — localized vs. distributed leaf update patterns
- `propagate_parent_transforms` — full recompute with roots changed vs.
leaves changed (static optimization disabled to isolate traversal cost)
- `transform_pipeline` — end-to-end pipeline with static optimization
on/off, plus `ChildOf` reparent churn
The hierarchy setup uses 48 roots × 6 depth layers with mixed fanout
(4-4-3-3-2-2) and extra archetype padding (`MarkerA/B/C`) to reflect
realistic gameplay scenes.
## Testing
```sh
cargo bench -p benches --bench transform
```
---------
Co-authored-by: ickshonpe <27962798+ickshonpe@users.noreply.github.com>bevy_transform benchmarks (#23906)1 parent 97c5d8d commit 738b147
3 files changed
Lines changed: 398 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments