anael-seghezzi / CToy

Interactive C live coding environment
Other
1.35k stars 70 forks source link

vsync control / frame limiting #6

Closed fo-fo closed 7 years ago

fo-fo commented 7 years ago

Is there any way to control vsync and/or frame limiting? On my computer the hello_world example runs overly fast (at 100 % CPU core usage).

anael-seghezzi commented 7 years ago

Hi, it should be on by default except if defined as "always off" in your GPU driver setting. I added a line to enforce v-sync on commit 7c81adf in case it helps. Let me know.

fo-fo commented 7 years ago

Yeah, looks like vsync is off by default on Intel GPU drivers on Windows. The glfwSwapInterval change is good enough for me, thanks!