diff --git a/examples/ecs/fixed_timestep.rs b/examples/ecs/fixed_timestep.rs index 6dd6a28ed5..85f83f4c7f 100644 --- a/examples/ecs/fixed_timestep.rs +++ b/examples/ecs/fixed_timestep.rs @@ -12,14 +12,14 @@ fn main() { App::build() .add_plugins(DefaultPlugins) // this system will run once every update (it should match your screen's refresh rate) - .add_system(update.system()) + .add_system(frame_update.system()) // add a new stage that runs every two seconds .add_stage_after( CoreStage::Update, FixedUpdateStage, SystemStage::parallel() .with_run_criteria( - FixedTimestep::step(2.0) + FixedTimestep::step(0.5) // labels are optional. they provide a way to access the current // FixedTimestep state from within a system .with_label(LABEL), @@ -29,7 +29,7 @@ fn main() { .run(); } -fn update(mut last_time: Local, time: Res