Locking FPS to 60.

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
JapanFred

Locking FPS to 60.

Post by JapanFred »

Hi,

I'm new to Irrlicht, i'm writing a little tilemap engine, but i'm having a problem figuring out how i can lock the screen to only render 60 Frames Per Second.

If this is possible, please assist me :)

Thanks.

Dean.
StuCollier
Posts: 52
Joined: Tue Mar 30, 2004 12:16 pm

Post by StuCollier »

Hi JapanFred

I started a thread on tjhis subject at http://irrlicht.sourceforge.net/phpBB2/ ... php?t=3247

Using the timer in the posted code (zip file) you can limit the game to whatever FPS you require - BUT - although it limits the FPS it does not lead to a smooth gfx update. - as my example is using scrolling its very evident - with an ISO with no scrolling it might be ok.
StuC
Freeware games
www.ovine.net
StuCollier
Posts: 52
Joined: Tue Mar 30, 2004 12:16 pm

Post by StuCollier »

The CVS at http://www.irrlichtnx.mmdevel.de/ now contains a nice fix for locking the frame rate to that of your monitor !

It is only win32 / openGL only at the moment.

It is done by driver->setVSync(bool) and will limit the frame rate as you require. Idea for 2D drawing!
StuC
Freeware games
www.ovine.net
Post Reply