• Advertisement

Archived

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

How to enabling V-sync?

This topic is 5555 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

Hi! Does anybody know how to turn on V-sync using C++? Thanks!

Share this post


Link to post
Share on other sites
Advertisement
if (VSYNC)
wglSwapIntervalEXT(1);
else
wglSwapIntervalEXT(0);

NOTE: it is an extention so you will need to set it up before you can use it.

EDIT: opps it was backwards!

[edited by - Xero-X2 on December 7, 2002 8:23:27 PM]

Share this post


Link to post
Share on other sites

  • Advertisement