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\$
  • 2
    \$\begingroup\$ In windowed mode, you don't have exclusion control over the device. \$\endgroup\$ – user1430 Jul 19 '13 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\$ – Maximus Minimus Jul 19 '13 at 19:34
  • \$\begingroup\$ I was using 120 and 1, GetDisplayModeList keeps returning null for me? \$\endgroup\$ – Levi H Jul 19 '13 at 23:11
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).

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.