mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-08-03 14:12:25 -04:00
set swap interval down to 1; frames are timed instead of throttled now
This commit is contained in:
parent
8a0034d24a
commit
8b48b4e449
@ -36,6 +36,8 @@ void initGLExtensions() {
|
|||||||
|
|
||||||
std::cout << std::endl << "Supported GL Extensions: " << std::endl << extensions << std::endl << std::endl;
|
std::cout << std::endl << "Supported GL Extensions: " << std::endl << extensions << std::endl << std::endl;
|
||||||
|
|
||||||
|
const GLint interval = 1;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if (GLExtSupported("WGL_EXT_swap_control")) {
|
if (GLExtSupported("WGL_EXT_swap_control")) {
|
||||||
std::cout << "Initializing WGL swap control extensions.." << std::endl;
|
std::cout << "Initializing WGL swap control extensions.." << std::endl;
|
||||||
@ -48,8 +50,7 @@ void initGLExtensions() {
|
|||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
// OSX is just ON / OFF
|
// OSX is just ON / OFF
|
||||||
const GLint gl_interval = 1;
|
CGLSetParameter (CGLGetCurrentContext(), kCGLCPSwapInterval, &interval);
|
||||||
CGLSetParameter (CGLGetCurrentContext(), kCGLCPSwapInterval, &gl_interval);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user