set swap interval down to 1; frames are timed instead of throttled now

This commit is contained in:
Charles J. Cliffe 2015-08-08 14:31:23 -04:00
parent 8a0034d24a
commit 8b48b4e449
1 changed files with 3 additions and 2 deletions

View File

@ -36,6 +36,8 @@ void initGLExtensions() {
std::cout << std::endl << "Supported GL Extensions: " << std::endl << extensions << std::endl << std::endl;
const GLint interval = 1;
#ifdef _WIN32
if (GLExtSupported("WGL_EXT_swap_control")) {
std::cout << "Initializing WGL swap control extensions.." << std::endl;
@ -48,8 +50,7 @@ void initGLExtensions() {
#ifdef __APPLE__
// OSX is just ON / OFF
const GLint gl_interval = 1;
CGLSetParameter (CGLGetCurrentContext(), kCGLCPSwapInterval, &gl_interval);
CGLSetParameter (CGLGetCurrentContext(), kCGLCPSwapInterval, &interval);
#endif
#ifdef __linux__