Simulation freezing

Is there a way to fix the freezing that happens when you leave the window Box2D is simulating and then coming back later? I suppose the problem is that it tries to catch up the simulation and if you take too long to come back there's a lot of frames to catch up...

has anyone experieced that? Any tips on how to fix it?

Thanks 🙂

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