PDA

View Full Version : refresh rate.



ray3_3dvis
06-23-2005, 11:06 AM
It is about the refresh rate. I use Opengl to draw picture in such way:
if the refresh rate of my display is 70HZ. I would draw the picture in the first frame and clear the screen in the second frame, and so on. In this way I draw 35 picures per second.
the synchronization with the diplay is the problem for me. any suggestions?
thx!

mikef
06-23-2005, 03:13 PM
If you're on windows and you've got the WGL_EXT_swap_control extension, try

wglSwapIntervalEXT( 2 );

ray3_3dvis
06-24-2005, 01:49 PM
Thanks, mikef!
I will try that!