About frame rate

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
kinkreet
Posts: 64
Joined: Thu Oct 31, 2013 7:53 pm
Location: Barcelona, Spain

About frame rate

Post by kinkreet »

Hello everyone,

I am using openGL driver with vsync and fullscreen parameter to false and the refresh rate of the display is 60hz. The result is 60fps.

But what if I use the same setup with a 120hz refresh rate, the result would be 120fps?

In that case, how can I do it will always 60fps regardless of the monitor?

Thanks!
lisacvuk
Posts: 21
Joined: Thu Apr 17, 2014 4:50 pm

Re: About frame rate

Post by lisacvuk »

Probably not, i have 75hz rate, and have 60 fps.
kinkreet
Posts: 64
Joined: Thu Oct 31, 2013 7:53 pm
Location: Barcelona, Spain

Re: About frame rate

Post by kinkreet »

How does it work?
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: About frame rate

Post by mongoose7 »

1. Vsync is handled by the system so it doesn't matter how fast Irrlicht renders the scene, the driver will only update at the refresh rate.
2. If you want 60fps then take the time before starting to render and, if 16.7 ms hasn't elapsed since the last time, call Sleep or usleep for the remaining time.
kinkreet
Posts: 64
Joined: Thu Oct 31, 2013 7:53 pm
Location: Barcelona, Spain

Re: About frame rate

Post by kinkreet »

but lisacvuk has 75hz of refresh rate and has 60fps :/, with vsync and fullscreen disabled.
Post Reply