2
\$\begingroup\$

In fullscreen the game will run at 120fps fine, the correct refresh rate for the monitor, but in windowed mode it only runs at 60fps. If I disable VSync then it runs at thounsands of fps so it's not a case of a lack of performance. I've correctly set the refresh rate in the ModeDescription.

\$\endgroup\$
3
  • 2
    \$\begingroup\$ In windowed mode, you don't have exclusion control over the device. \$\endgroup\$
    – user1430
    Commented Jul 19, 2013 at 18:59
  • 1
    \$\begingroup\$ When you say "I've correctly set the refresh rate in the ModeDescription" can you confirm - did you just set Numerator to 120 and Denominator to 1, or did you actually use a refresh rate obtained via IDXGIOutput::GetDisplayModeList? \$\endgroup\$ Commented Jul 19, 2013 at 19:34
  • \$\begingroup\$ I was using 120 and 1, GetDisplayModeList keeps returning null for me? \$\endgroup\$
    – Levi H
    Commented Jul 19, 2013 at 23:11

1 Answer 1

4
\$\begingroup\$

In windowed mode in Windows Vista and Windows 7, as well as OS X and many modern Linux desktop incarnations, the application has zero control over refresh. The application's front buffer is really just another off-screen surface used by a compositing system, like dwm.exe in Windows, which then composites the final full desktop image. It may run at a different frame rate than you want, and your application's rendering may be limited to that rate (since it has no reason or ability to worry about the monitor's native rate).

\$\endgroup\$
1
  • 1
    \$\begingroup\$ How come I don't get this problem on many other games? \$\endgroup\$
    – Levi H
    Commented Jul 19, 2013 at 23:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .