Throttle the program to run at max 60fps.

This commit is contained in:
2018-02-12 16:42:55 +01:00
parent 35ad3df4ca
commit 2192408ef9
3 changed files with 28 additions and 0 deletions

View File

@@ -151,6 +151,7 @@ static void specialKeyFunc(int key, int, int)
static void idleFunc()
{
checkGLErrors();
throttleIdleFunc();
}
int main(int argc, char *argv[])