Jump to content


How to detect a monitor's Default refresh frequency?


1 reply to this topic

#1 Nautilus

    Senior Member

  • Members
  • PipPipPipPip
  • 352 posts

Posted Today, 06:09 PM

How do I retrieve a monitor's default refresh rate?

If I query for the current mode's refresh rate I may be returned either 0 or 1, both indicating a default refresh rate. But I found no way to retrieve what this default is. I know it can be overridden via the DxDiag interface - still, not even such interface will tell what's the original default.

Can I safely assume a value of 60 Hz? Apparently not. Some people have their monitors set to 59 Hertz when they activate some resolutions.
A manual count of the vertical blank intervals over a period of 1 second isn't always a viable option for me.

Thanks in advance.
-Nautilus

(readin' this? you ought to get out more)


#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5308 posts
  • LocationSanta Clara, CA

Posted Today, 08:30 PM

I googled around a bit, but no one seems to know a solid way to get the current video mode in DXGI...the closest I found was this StackOverflow question which recommends using EnumDisplaySettings, then trying to find a matching DXGI mode.
reedbeta.com - developer blog, OpenGL demos, and other projects





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users