Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Custom Refresh Rate  (Read 2745 times)

0 Members and 1 Guest are viewing this topic.

AdrianM

  • Newbie
  • *
  • Posts: 43
    • View Profile
Custom Refresh Rate
« on: March 06, 2009, 11:18:32 pm »
I discovered SFML a few days ago and it seems pretty cool.

I was wondering, is there a way to change the refresh rate to something higher that 60 hz?

tireswing

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://www.tireswinggames.com/
Custom Refresh Rate
« Reply #1 on: March 06, 2009, 11:41:24 pm »
I don't know of any way to ask for a video mode with a specific refresh rate.  If you ask for 800x600x32 and your monitor supports that resolution at both 60Hz and 75Hz, I'm not sure which video mode you'll get.  It looks to me like you get 60Hz.

Perhaps in the future a requested refresh rate can be added as part of the VideoMode structure.

Of course, I'm fairly new to SFML myself, so I could be wrong.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Custom Refresh Rate
« Reply #2 on: March 06, 2009, 11:48:07 pm »
The refresh rate is not controlled by SFML. You should rather take a look into your graphics card driver's settings. I guess you have vertical sync enabled.
Laurent Gomila - SFML developer

 

anything