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 2 of 2

Thread: About VSync

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2012
    Posts
    5

    About VSync

    Hi everybody,

    I'm currently working on vertical synchronization. The question is simple : On windows I've found a method (wglGetSwapIntervalEXT() in WGL_EXT_swap_control) to know if VSync is activated.

    My problem is, I cannot find the method for linux support. I have already checked SGI and ARB even if I don't know so much about extensions.

    Thanks
    Benjamin

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,126
    Quote Originally Posted by Benjamin3D View Post
    I'm currently working on vertical synchronization. The question is simple : On windows I've found a method (wglGetSwapIntervalEXT() in WGL_EXT_swap_control) to know if VSync is activated.

    My problem is, I cannot find the method for linux support. I have already checked SGI and ARB even if I don't know so much about extensions
    http://www.opengl.org/registry/ is your friend. See GLX_EXT_swap_control. NVidia supports this at least.

    If you check the extension spec, you'll see there is a GLX_SWAP_INTERVAL_EXT state on the drawable that can be queried via glXQueryDrawable() -- see the extension spec for full code here. But why can't you just cache this value off in your app space rather than query GLX / the X server for it. Likely to be faster (gets should generally be avoided for performance).

    Also you might be interested in the GLX_EXT_swap_control_tear extension.

Posting Permissions

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