diff --git a/examples/stress_tests/many_gizmos.rs b/examples/stress_tests/many_gizmos.rs index 5d7350a22dc34..25c2799122e19 100644 --- a/examples/stress_tests/many_gizmos.rs +++ b/examples/stress_tests/many_gizmos.rs @@ -1,3 +1,4 @@ +use std::cmp::max; use std::f32::consts::TAU; use bevy::{ @@ -30,8 +31,12 @@ fn main() { .add_systems(Startup, setup) .add_systems(Update, (input, ui_system)); - for _ in 0..SYSTEM_COUNT { - app.add_systems(Update, system); + let make_system = |index: u32| { + move |config: Res, time: Res