I need help with a program I'm writing with jbox2d and slick2d. I'm using
this wrapper class to integrate jbox2d with the slick2d library.
Most of the time the simulation runs fine, at 500+ FPS. But sometimes, for no aparent reason, the simulation slows to a crawl... I'm testing even with a single entity falling with gravity. The object falls 10x slower then it should, and strangely the FPS remains the same, 500 or more. Running the program a few times have the same result, but eventually I run it and the simulation goes back to normal, again for no apparent reason... Because of that I can't reproduce the problem consistently...
Does anyone have any idea what could be happening?