Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: refresh rate

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2003
    Location
    cairo,Egypt
    Posts
    7

    refresh rate

    The no of fps is restricted to the refresh reat.I know how to change it in direct 3d to change it but i don't know how to change that in openGL. can any one help me? thanks in advance.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: refresh rate

    Hi !

    You don't, you set this in the control panel, click on "display" and then go to the "settings" tab, if you can change it you do this in the video driver settings.

    By the way, turning of the vsync is pretty useless, why would any one want 600 FPS ?, 60-75 should be just fine, I cannot think of a reason to use more, it's just a wast of CPU time.

    Mikael

  3. #3
    Intern Contributor
    Join Date
    Nov 2002
    Posts
    98

    Re: refresh rate

    Mikael, I have found it quite handy to turn off vsync when making my project. I could exactly see what the effects were on framerate. I saw one time that by some implementation my framerate dropped from 250 to 100. With vsync on I hadn't noticed this, and I'd have gone further without bothering.

    Mohamed, Mikael is right on how to turn vsync off. It might be in your videodriver settings. There is also a way of turning this off in-code, but I have no idea how. There was a thread about this on gamedev recently, perhaps you can use it: http://www.gamedev.net/community/for...opic_id=134516

  4. #4
    Junior Member Newbie
    Join Date
    Jan 2003
    Location
    cairo,Egypt
    Posts
    7

    Re: refresh rate

    Thanhs a lot for your help.this method worked but there's a way in the code of the program itself to restrict the frame rate to the refresh refresh rate or not in direct x so i was asking if it is possible to do it in openGL

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Oct 2001
    Posts
    612

    Re: refresh rate

    EXT_swap_control
    look for it in the extension registry

  6. #6
    Advanced Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    853

    Re: refresh rate

    Originally posted by Mazy:
    EXT_swap_control
    look for it in the extension registry
    Specifically, WGL_EXT_swap_control for Windows, or GLX_SGI_swap_control for X11 (only a few X implementations support this, I think - NOT nVidia/Linux).

    Or, use GLFW , which has a portable (and easy to use) version: glfwSwapInterval()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •