Page 1 of 1

graphics update rate (Irrlicht + ODE)

Posted: Sat Feb 28, 2009 4:34 am
by humorstar
I am implementing simple dynamics with ODE as the dynamics engine and Irrlicht as the graphics engine.
I found out if the simulation task is heavier, the graphics update rate is lower, while if the simulation is easier, then the graphics update is faster.

This makes simulation look unreal.
How can I make sure that the graphics rate is constant?

Thank you,

Posted: Sat Feb 28, 2009 8:15 am
by Nimrod
http://irrlicht.sourceforge.net/phpBB2/ ... framedelta

Look for the part about frameDelta.

It doesn't make the frame rate constant, but it makes the movement constant.

Also,

http://opende.sourceforge.net/mediawiki ... e_timestep

Posted: Sun Mar 01, 2009 3:43 pm
by humorstar
I read the frameDelta post but I am not sure where to apply this frameDelta for 'velocity'.

I tried to use frameDelta this way:
dWorldQuickStep(g_dyn_world_id, dReal(frameDelta ));
It seems to work.

Thank you for the help.