[SDL] Framerate independence?

Alberto Luaces aluaces at udc.es
Fri Mar 30 01:12:41 PDT 2007


El Viernes, 30 de Marzo de 2007 01:10, Andrew Zabolotny escribió:
> generally
> speaking ODE does not require all frames have the same length in time,
> just that it wouldn't be way off the "adequate" value.

Keep in mind that the fact that ODE lets you advance a different amount of 
time in every step doesn't mean that the computations are still right. Using 
a delta that can be from 1 time to 10 times its value can be catastrophic in 
all but the simpler simulations. Think that it is *not* the same to apply a 
force during a millisecond that doing the same during 10ms. Going back in 
time is not an option IMHO -- it is generally a wate of resources and can 
lead to a large combinational problem to solve (think of multiple 
collisions) --.

>Exactly, that's why I have *both* MaxFPS *and* MinFPS.

For the reasons above, I think you must decouple completely FPS from physical 
computation.

Regards,

Alberto


More information about the SDL mailing list