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: VSYNC and other stuff

  1. #1
    Guest

    VSYNC and other stuff

    Hi guys,
    I have two questions for you :
    1) Is there an easy way to tell OpenGL to perform a page flipping with VSYNC or without it ?
    2) In DirectX someone could check a CAPS structure and see what actions are done by the hardware (e.g. blitting, alpha blending etc...) and what actions done by software. Is there something like that in OpenGL? (Not the general information from PixelFormat but some detailed information for every action)
    Thanks in advance.

    iGMar.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Italy
    Posts
    126

    Re: VSYNC and other stuff

    //vsync disable
    BOOL (APIENTRY *wglSwapIntervalEXT)(int);
    wglSwapIntervalEXT=( BOOL (APIENTRY*)(int) )wglGetProcAddress("wglSwapIntervalEXT");
    if (wglSwapIntervalEXT!=NULL) {
    message("Vsync disabled (wglSwapIntervalEXT)\n");
    wglSwapIntervalEXT(0);
    }
    else {
    message("Vsync unchanged (wglSwapIntervalEXT not found)\n");
    }

Posting Permissions

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