Results 1 to 3 of 3

Thread: Lock swapbuffers to frame rate

  1. #1
    Newbie Newbie
    Join Date
    Dec 2012

    Lock swapbuffers to frame rate

    I am developing an application for research in which I need extreme precision of frame updates.

    The graphics is very simple - a high resolution checkerboard which inverts every 4 frames. The key thing is that there must be no dropped frames or variation of the update rate. I thought of simply having the two images in double buffered memory and simply issuing the swapbuffers command to flip them but I don't know a way of tying the code execution to the vsync. The same thing could be achieved by translating the pattern horizontally or vertically by one square except that the image would need to be bigger than the screen so that the edges don't move. Is there any simple way to do this fairly simple task with the required precision?

    Any help much appreciated

  2. #2
    See glXSwapIntervalSGI. If you can guarantee to call you swapbuffers faster than 16ms, this will give you a steady 60Hz on a 60Hz monitor.

  3. #3

Similar Threads

  1. Frame Rate in ES???
    By qasim1981 in forum OpenGL ES
    Replies: 1
    Last Post: 11-17-2004, 01:02 PM
  2. frame rate
    By KeSh in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-17-2004, 02:27 AM
  3. Frame Rate
    By psankaranv in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-21-2002, 11:01 PM
  4. frame rate
    By dpgraves in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-03-2001, 01:37 AM
  5. Frame rate too low! Why?
    By codemaster in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 11-15-2000, 11:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean