Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

SGreth

OpenGL Setting the Refresh Rate in OpenGL ?

This topic is 6242 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

Just wondering what any of you out there who are releasing games/demos do to detect/set the current refresh rate. My current fps is maxed out at 60 (due to a lame default choice by ChangeDisplaySettings which I''ll fix later). I know how to use EnumDisplaySettings() to list all of the display modes, but that''s just what the *video card* supports. How much would that suck if I set the refresh rate to 120 on a monitor that can only do 60 Is there a way to enuerate a monitor''s refresh rate or am I stuck with defaulting to 60 for everybody despite the fact that there are so few 60Hz motitors out there (granted, I have one that''s still kick''n). Thanks, ~S''Greth

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
I am running linux at the moment so I can not check this but does not EnumDisplaySettings give the available frequncies you can use with the current monitor?
Remember that EnumDisplaySettings is limited for some win9X system.

I do not think that anyone more experienced programmer would even think of locking it above 60 fps.

Share this post


Link to post
Share on other sites
Are you sure it is just what the card supports?

In my engine it returns what the card + monitor can handle (my Geforce 2 MX could easily kill my monitor).

Coder10000

Share this post


Link to post
Share on other sites
EnumDisplaySettings() won''t only give you what the card supports, but what the monitor supports.

Just iterate through all of them, and keep the ones with the fitting resolution, then select the one with the highest refresh rate. Has always worked for me.

Ciao, ¡muh!

Share this post


Link to post
Share on other sites

  • 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!