Hi folks, I'm having a weird issue that is challenging to explain.
I have a SystemSet for camera movements that are set to run on a 1/60 fixed timestep. However as far as I can tell the systems only execute when some input (i.e. keyboard, mouse) is happening.
.add_system(input_accelerate_camera)
.add_system_set(
SystemSet::new()
.with_run_criteria(FixedTimestep::step(TIME_STEP as f64))
.with_system(apply_acceleration.before(clamp_velocity))
.with_system(clamp_velocity.before(apply_velocity))
.with_system(apply_velocity),
)
Here's a log I captured that hopefully illustrates the issue
time: 306.72113
apply_acceleration
clamp_velocity
apply_velocity
... nothing happens, then...
... MOUSE CLICK! ...
time: 307.92172
apply_acceleration
clamp_velocity
apply_velocity
I'm on an Apple M2 with Ventura.