[ODE] Framerate problem *again*

Mattias Fagerlund mattias at cambrianlabs.com
Tue Feb 11 02:59:01 2003


This form is easier to read, and largely equivalent (though I removed the 
1000 ms conversion for the sake of clarity);

lCurrentTime=GetRealTime();
while (lSimTime < lCurrentTime) 
{
  dWorldStep(odeWorld, SIM_TICK);
  lSimTime+=SIM_TICK;
}

The main point is that updating your physics 100 times per second or 50 
times per seconds is sufficient, the user won't notice that the world 
stands still between frames, even if his framerate is at 140 fps. 
Especially since most monitors have a refreshrate of 70 to 85 fps anyway.

cheers,
m