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

Thread: Can I sync my OGL program with vsync ?

  1. #1
    Guest

    Can I sync my OGL program with vsync ?

    I would like to sync my ogl camera movement with the vsync to keep it at the same tempo on different hardware. Or isnt that the way to go anyone with a better solution.

    thanks

  2. #2
    Intern Newbie
    Join Date
    Jun 2000
    Location
    Tigard, OR, USA
    Posts
    46

    Re: Can I sync my OGL program with vsync ?

    Take a look at glvelocity.gamedev.net in the code section. There's a piece of code that (I think) does what you want.

  3. #3
    Junior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Nice, France
    Posts
    222

    Re: Can I sync my OGL program with vsync ?

    You'd better use the high performance counter of the PC to get a time reference for your app (make it time dependant) rather than using the refresh rate as reference.

  4. #4
    Guest

    Re: Can I sync my OGL program with vsync ?

    what is a high performace counter ?

  5. #5
    Junior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Nice, France
    Posts
    222

    Re: Can I sync my OGL program with vsync ?

    Make a search on this forum for performance counter.

Posting Permissions

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