The main loop updates at fixed timestep