OpenGL and Vsync

Started by
1 comment, last by Facehat 24 years, 8 months ago
I think what you're supposed to do is ignore the retrace issue. Hardware OpenGL implentations can wait for the retrace when SwapBuffers is called. Some drivers let the user decide what should happen.

It's yet another idea for an extention. Just a boolean state specifying what the program would like.

You could try and rig some system dependant thing by talking to windows directly but I would doubt you'd have much luck since things like retrace syncing are in directdraw and you can't use directdraw with OpenGL windows (because some OpenGL drivers use directdraw themselves)

-That which does not kill us has made its last mistake.
Advertisement
Hi,
This is more of a windows question, but is there a way to sync SwapBuffers with the vertical retrace period?

Thanks,
--TheGoop

All ICDs _should_ sync by default. There may be some exceptions, but you shouldn't have to do anything special to sync.

There's an extension to turn it off. Well, to hint at its state really. It doesn't seem to be very well documented. Here's a link I found to a page on the MESA3d site, which seems to be down.
http://www.mesa3d.org/brianp/sig97/exten.htm

------------------
Scott Franke [druid-]
sfranke@usc.edu
druid-'s GL Journal
http://www.gamedev.net/opengl

This topic is closed to new replies.

Advertisement