[ODE] ODE freezes, can you help?

gl gl at ntlworld.com
Wed Dec 18 12:26:02 2002


Hi everyone.  Just stumbled on ODE - it looks like an excellent resource.
Thanks a bunch Russ for making it available, and continuing to improve it.
Looking forward to integrating it into my online project.

> One more question. I am having big trouble debuging. You, on the other
hand,
> seem to master this stuff. Can you please describe, which tools you use
and
> how.I am working with MS VS7, developing full screen directx
game.Currently
> I fprintf all debug messages to file and examine it lately.

I work with DirectX myself.  The first thing you absolutely need to do is to
add windowed support to your game.  There is plenty of sample code in the DX
SDK to show how this is done.

Alternatively, if you have a 2nd PC available, you can debug a fullscreen
app remotely (ie. the debugger runs on the 1st PC, and launches your app
remotely on a 2nd via LAN).  There is information on how to set this up in
MSDN - search for 'Remote Debugging'.

Once you're debugging from inside your IDE, you will also get all sorts of
useful DirectX runtime debug information in your VS Output window, as long
as you have the debug runtimes installed, and enabled them from the DirectX
control panel.  There you can also set how much detail you want to see.
--
gl


>
> thanks for help,
>
> ivan
>
>
> ----- Original Message -----
> From: "Martin C. Martin" <martin@metahuman.org>
> To: "Ivan Bolcina" <ivan.bolcina@volja.net>
> Cc: <ode@q12.org>
> Sent: Wednesday, December 18, 2002 7:39 PM
> Subject: Re: [ODE] ODE freezes, can you help?
>
>
> > > 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
> > _______________________________________________
> > ODE mailing list
> > ODE@q12.org
> > http://q12.org/mailman/listinfo/ode
>
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode
>