graphics update rate (Irrlicht + ODE)

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
humorstar
Posts: 25
Joined: Sat Oct 04, 2008 3:50 am

graphics update rate (Irrlicht + ODE)

Post 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,
Nimrod
Posts: 8
Joined: Sun Feb 22, 2009 8:10 pm

Post 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
humorstar
Posts: 25
Joined: Sat Oct 04, 2008 3:50 am

Post 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.
Post Reply