Testbed timestep

Hi,

I noticed that in the testbed there is no limitation set on the nr of world updates, and that deltatime is always set to the hz from the settings. Now I've read box2d should be able to cope with variable timesteps (which would be the case when processing misses a few frames for whatever reason), but from what I see the velocity would be all wrong in such a case; World.step calls Island.step which caculates the body's velocities by using the dt, but since the dt is a constant size while we're having a possible variable timestep, this couldn't give correct results right?

Thanks,

Martijn
While the engine is workable with a somewhat variable timestep, you should always use a constant timestep.

Original thread: https://box2d.org/forum/viewtopic.php?t=7054