-
VSYNC and other stuff
Hi guys,
I have two questions for you :
1) Is there an easy way to tell OpenGL to perform a page flipping with VSYNC or without it ?
2) In DirectX someone could check a CAPS structure and see what actions are done by the hardware (e.g. blitting, alpha blending etc...) and what actions done by software. Is there something like that in OpenGL? (Not the general information from PixelFormat but some detailed information for every action)
Thanks in advance.
iGMar.
-
Junior Member
Regular Contributor
Re: VSYNC and other stuff
//vsync disable
BOOL (APIENTRY *wglSwapIntervalEXT)(int);
wglSwapIntervalEXT=( BOOL (APIENTRY*)(int) )wglGetProcAddress("wglSwapIntervalEXT");
if (wglSwapIntervalEXT!=NULL) {
message("Vsync disabled (wglSwapIntervalEXT)\n");
wglSwapIntervalEXT(0);
}
else {
message("Vsync unchanged (wglSwapIntervalEXT not found)\n");
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules