To capture the performance impact of removing and adding UI nodes add a respawn commandline argument to the many_buttons stress test example that despawns the existing UI layout and then spawns a new layout to replace it every frame.
Testing
To run the example with the new changes use:
cargo run --example many_buttons --release -- --respawn
Objective
To capture the performance impact of removing and adding UI nodes add a
respawn
commandline argument to themany_buttons
stress test example that despawns the existing UI layout and then spawns a new layout to replace it every frame.Testing
To run the example with the new changes use:
cargo run --example many_buttons --release -- --respawn