this code works. From what I can tell the physics simulation is running at a simulated 60 steps per second. This is correct. It appears the physics and rendering are running in a locked time step manner. Update the code so that they aren't strictly locked. Use a single threaded approach and make the physics simulation always run at a 60 steps per second. The rendering may run at any frame rate, it would be OK to drop rendered frames if things are not running fast enough. Make sure that the physics simulation runs in a manner that is consistent with the passage of real world time.to make the appropriate implementation incorporate the solution presented at https://gafferongames.com/post/fix_your_timestep/ at the end