View Full Version : Wait for VerticalBlank and triple-buffer
02-16-2004, 04:06 AM
I would like to sync my application with the vertical-blank: I know it is possible to enable it by driver-settings, but I wanto to know how can I enable it via-software.
And then, If I want to switch to triple buffer, how can I do it??
02-16-2004, 06:36 AM
Search for "Vertical retrace" in the archive.
As far as I know OpenGL only supports doublebuffering.
02-16-2004, 06:37 AM
Driver must be set to allow SW control wait for vertical blank behaviour. Then look here http://oss.sgi.com/projects/ogl-sample/registry/EXT/wgl_swap_control.txt
Triple buffering is not an OpenGL feature. I know of no implementation doing this, and if, this wouldn't be a user controllable feature, but done through SwapBuffers.
If you need additional color and or depth buffers to draw stuff on, look for p-buffers on the above site.
The OpenGL API only supports double buffering. However any OpenGL implementation is free to use tripple buffering internaly when it sees fit.
For instance you can force OpenGL tripplebuffering in certain Radeon drivers.
02-16-2004, 08:48 AM
Older Radeon drivers (before the user control option) gave you triple buffering for fullscreen apps, up to a certain maximum resolution I believe, and double buffering for windowed apps.
I've asked for a WGL_ARB_pixel_format extension a while ago (http://www.opengl.org/discussion_boards/ubb/Forum7/HTML/000307.html) that would have fully exposed triple buffering.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.