• Advertisement

Archived

This topic is now archived and is closed to further replies.

vsync + framerate questions....

This topic is 5776 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My application is limited to 80fps, which is the refresh rate of my monitor. I''m figuring this is due to v-sync. How do i turn it off? Is it a driver thing or is it possible to do it in code... thanks -jonnii

Share this post


Link to post
Share on other sites
Advertisement
Here''s some code I ripped from an earlier post here:

// Turn off vertical screen sync under Windows.
// (I.e. it uses the WGL_EXT_swap_control extension)
typedef BOOL (WINAPI *PFNWGLSWAPINTERVALEXTPROC)(int interval);
PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = NULL;
wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)wglGetProcAddress("wglSwapIntervalEXT");
//ASSERT(wglSwapIntervalEXT);
//if (wglSwapIntervalEXT)
wglSwapIntervalEXT(0);

I think it works, but don''t kill me if it doesn''t.

Share this post


Link to post
Share on other sites
It is possible to write a program that handles this for you. Try out wglSwapInterval. wglSwapInterval(0) disables retrace synchronization and wglSwapInterval(1) enables it.

If you are using a Windows OS -> right click desktop, click settings, advanced, monitor - you may or may not be able to turn it off here depending on your sys. Check out your video card''s settings by clicking the name of it, hopefully you have a tab labeled OpenGL Settings, then click Vertical Sync - off. Just explore the tabs, if these ideas didn''t work for you.

Share this post


Link to post
Share on other sites
yeah... dont worry about it i did at the driver level, that''ll do for now...

thanks

-jonnii

Share this post


Link to post
Share on other sites

  • Advertisement