VSync: two instances, half framerate

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
floppyfreak
Posts: 117
Joined: Sat Apr 19, 2008 10:14 am

VSync: two instances, half framerate

Post by floppyfreak »

since irrlicht 1.7 I have the effect, that when I use the VSynch option when starting createDevice(), that runnig two instances of my app leads to half framerate (30 hz). Can I avoid this effect?
Nalin
Posts: 194
Joined: Thu Mar 30, 2006 12:34 am
Location: Lacey, WA, USA
Contact:

Post by Nalin »

Turn on triple buffering. Because you are using vsync, if your program is consistently failing to make its drawing call on time, it has to wait for the next call. If your monitor is running at 60Hz, it is missing every other draw call. Which means your program will run at 30 frames/second.

Triple buffering allows your program to keep drawing when it misses its draw call and is waiting for the next one. It will allow you to get above 30 frames/second.

I don't know how to turn it on via Irrlicht (or if it is even possible). You should be able to manually turn it on via your video card driver control panel.
Post Reply