Page 1 of 1

Vsync doesn´t work with DIRECT3D9

Posted: Sun Sep 17, 2006 2:57 pm
by Dibalo
So here is my problem: if I try to enable vsync using DIRECT3D9-device, it doesn´t work.

Can anyone tell me, what I have to do to enable that vsync?

Posted: Sun Sep 17, 2006 4:58 pm
by vitek
The vsync option only worked in full screen mode. This was fixed by hybrid in SVN change 184. If you use Irrlicht SVN, it should work, and if you don't, you can apply the same fix to your version pretty easily.

Posted: Sun Sep 17, 2006 7:39 pm
by hybrid
Oh wow, I did not know that this really changed something :oops: But this sounds really useful 8)

Posted: Mon Sep 18, 2006 2:10 pm
by Dibalo
It works now. Thanks mates! :)

Posted: Thu Sep 21, 2006 11:12 am
by pwierz
So if vsync is working, the frame rate should be locked in to the refresh rate, right? Here's what I have:

irr::SIrrlichtCreationParameters param;
param.WindowId = reinterpret_cast<s32>(g_hMainWnd);
param.DriverType = video::EDT_DIRECT3D9 ;
param.EventReceiver = receiver;
param.Fullscreen = true;
param.Bits = 32;
param.Vsync = true;

device = irr::createDeviceEx(param);
And it still doesn't seem to work. Any help?

Posted: Thu Sep 21, 2006 11:21 am
by hybrid
What is the refresh rate you can see? As said elsewhere there is no chance to get Irrlicht render faster by setting Vsync. So if the FPS are lower than your refresh rate this is ok. Only if it's faster then your refresh rate it might be a problem. In case check your driver settings (in display->properties->extended of the MS control) and see if you force the driver to disable vsync globally.