FPS control

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
thatax
Posts: 25
Joined: Thu Jul 31, 2008 7:33 am

FPS control

Post by thatax »

frame per second in my computer is 60 or so,
it becomes 110 when runs in another computer.
how to let it with a fixed num.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You cannot fix it to a fixed number, at least not exactly. One way is to Measure the time the last render took, and sleep for some more milliseconds until the desired duration is met. Another way is to use VSync, but the number of FPS is defined by the horizontal display frequency, which may vary from system to system. The best way is to ignore the number of FPS and make the whole system frame-rate independent.
Post Reply