You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use run_system instead of SystemState for ECS benches (#23687)
# Objective
We want to use `World::run_system` where possible - especially in older
code that did not have the benefit of using it when it was written.
This is a small step towards #23238. More work is needed on the unit
tests and possibly elsewhere if this approach has been verified.
## Solution
- Instead of `SystemState` I used a closure system and registered it.
- I called the registered system with `World::run_system` inside the
bench.
## Testing
I ran the benches effected and found that they did not regress on my
machine.
Quick check:
```sh
cargo bench -p benches --bench ecs -- 50000_entities_table
```
0 commit comments