[SOLVED] PresentationInterval settings
- bishopnator
- Gnome
- Posts: 395
- Joined: Thu Apr 26, 2007 11:43 am
- Location: Slovakia / Switzerland
- x 18
[SOLVED] PresentationInterval settings
Hi, it would be nice to have support for setting different values to PresentationInterval during initialization of DX. In some scenes in my application I have problem with fps which is sometimes below 60. I have 60Hz refresh rate on my LCD and when fps decreases below 60 it is very visible on camera movement - I see some ticks in movement .. movement is not smooth. So I tried to set different value - D3DPRESENT_INTERVAL_TWO - so my fps was one half of refresh rate of monitor and every movement was really smooth because every scene im my application runs above 30fps, so I get stable fps with this settings.
Last edited by bishopnator on Mon Apr 13, 2009 1:32 pm, edited 1 time in total.
- sinbad
- OGRE Retired Team Member

- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 67
- Contact:
Re: PresentationInterval settings
Ok, this is the knid of thing we'd normally expose via the named params, but it's a little more complicated since the driver is not guaranteed to support this option, so it would need checking. The equivalent on GL is asking for _wglSwapIntervalEXT(2) (not sure about the GLX / OSX version).
- sinbad
- OGRE Retired Team Member

- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 67
- Contact:
Re: PresentationInterval settings
This is supported now as the "vsyncInterval" setting, defaults to 1. I found that D3D9 would just crash if you tried to use anything other than 1 in windowed mode though, regardless of what the device caps said, so it's only respected in full screen mode. In GL it works in both windowed and fullscreen modes.
- bishopnator
- Gnome
- Posts: 395
- Joined: Thu Apr 26, 2007 11:43 am
- Location: Slovakia / Switzerland
- x 18
Re: PresentationInterval settings
great news
thanks a lot.
