Jump to content
  • Advertisement
Sign in to follow this  
The Pentium Guy

Very simple question: Setting the monitor's refresh rate

This topic is 4833 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
When creating a device you can pass the desired refresh rate via the D3DPRESENT_PARAMETERS structure in the FullScreen_RefreshRateInHz member. The refresh rate should be one that you get from calling EnumAdaptorModes().

Share this post


Link to post
Share on other sites
Eh...quick question. Why would this monitor NOT support 60hz at 640x480/800x600/1024x768, but supports 60hz at 1280x1024? Very strange, becuase when I manually go to 640x480 and set it to 60hz it's fine (60hz is the default for 640x480 anyways). But when I do it in code it doesn't work.

-2005530516 (D3DERR_INVALIDCALL)
at Microsoft.DirectX.Direct3D.Device..ctor(Int32 adapter, DeviceType deviceType, IntPtr renderWindowHandle, CreateFlags behaviorFlags, PresentParameters[] presentationParameters)

However if I comment out the
"dxDevice.FullscreenRefreshRateInHz = 60"
line, then it works fine.

At 1280x1024, the monitor is capable of running (both in code, and manually) at 60hz.

Strange.
Any help?

Thanks,
-The Pentium Guy

Share this post


Link to post
Share on other sites
I've noticed a similar thing happens with me whenever I set the refresh rate to anything besides the default rate. I've never known why and would be interested in what is happening as well.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
LCD or CRT monitor?

Share this post


Link to post
Share on other sites
I experience similar behavior. For example, some resolutions offer a refresh rate of 72, while others don't. I'm not quite sure if it's a monitor or GPU restriction.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!