Hello everyone. I’m a newbie but 2 questions already raised.
-
Is there a way to set monitor’s refresh rate while running a fullscren OpenGL app.
-
Is there a way to synchronize buffer swapping in a double bufferd app with monitor’s vertical refresh. Specifically I need something similar to the asynchroneous Direct Draw Flip() method. I’m pasting MSDN snippet to make things clearer:
"When working with visible surfaces, such as a primary surface flipping chain or a visible overlay surface flipping chain, the Flip method is asynchronous unless you include the DDFLIP_WAIT flag. On these visible surfaces, the Flip method can return before the actual flip operation occurs in the hardware (because the hardware doesn’t flip until the next vertical refresh occurs). While the actual flip operation is pending, the back buffer behind the currently visible surface can’t be locked or blitted by calling the IDirectDrawSurface7::Lock, IDirectDrawSurface7::Blt, IDirectDrawSurface7::BltFast, or IDirectDrawSurface7::GetDC methods. If you attempt to call these methods while a flip operation is pending, they will fail and return DDERR_WASSTILLDRAWING. "
Something like that in OpenGL? Thanks.