[ODE] ODE freezes, can you help?

Martin C. Martin martin at metahuman.org
Wed Dec 18 10:40:02 2002


> Actually, it doesn't freeze. It takes a 5 seconds to calculate next frame, and then > object colliding are thrown somewhere out of sigth. In next frame, this
> repeats. How to debug it?

Profile it.  Where is the time being spent?  In graphics?  In the near
callback?  Stepping the world?  Is the hard drive going during those 5
seconds?  That might mean you're running out of memory, or loading
textures from disk, or something like that.  How much of the 5 seconds is
spent in your process?  Maybe some other task is grabbing the CPU for a
long time, again involving swapping.

At 5 seconds, you could probably use clock() for timing.

Good luck,
Martin