I'm starting to learn the GPipe library, and was wondering how someone could accomplish vsync and FPS control with it. Initially, I was thinking a separate thread could block every 1 * 1000000 / FPS
microseconds and run swapContextBuffers
, but that would mean the separate thread would need to build its own ContextT
, and thus it's own window.
The docs on the function itself mentions briefly that it could block if VSync is enabled in the system - what does this mean? How would I enable it?