PDA

View Full Version : SwapBuffer and screen synchronisation



kadreg
04-25-2000, 12:30 AM
I have written a small program with opengl. This program run at 350 frames per seconds. But I use the SwapBuffer function, and I think this method use the synchonisation with the screen refresh. My screen is at 100Hz, I guess to have 100fps.

Anybody know what happend ?

Bob
04-25-2000, 04:00 AM
I don't think SwapBuffers() is waiting for your screen to finish drawing.

If you need to synchronise with your screen, have a look at the extension called WGL_EXT_swap_control at http://oss.sgi.com/projects/ogl-sample/registry/

kadreg
04-25-2000, 10:07 AM
Sorry bob, but the glutSwapBuffer (I use) do the vsync. And the program must run on ATI Rage pro II under NT, which doesn't have this extension.

It was just the TNT2 driver, which can overide this setting ant put the vsync off.

Thanks all

Bob
04-26-2000, 02:00 AM
Ok, you where talking about glutSwapBuffer(), maybe that explains the whole thing http://www.opengl.org/discussion_boards/ubb/smile.gif I thought you ment SwapBuffers() in Win32 environments, sorry http://www.opengl.org/discussion_boards/ubb/tongue.gif