bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.46k stars 3.6k forks source link

`many_buttons` `--respawn` arg #16390

Closed ickshonpe closed 2 weeks ago

ickshonpe commented 2 weeks ago

Objective

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