PDA

View Full Version : Direct3D9 VSync


dega512
03-27-2006, 06:37 AM
I have tried searching google for turning on vsync in Direct3D9 but I can't seem to find out how to do it. So with that said, does anyone know how to do it :worthy:?

Mjolnir
03-27-2006, 07:09 AM
D3DPRESENT_PARAMETERS d3dpp;
// on
d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_DEFAULT;
// off
d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;
See the details: D3DPRESENT (http://msdn.microsoft.com/library/en-us/directx9_c/D3DPRESENT.asp?frame=true)

dega512
03-27-2006, 05:27 PM
Wow that easy eh? Thanks a ton!