If I understand vsync right, it makes SwapBuffers a blocking call.
Any ideas on how to minimize CPU usage using Sleep (1) or usleep, but always --- or almost always --- hitting the frames per second target?
1) My understanding of blocking SwapBuffers is that it is a wasteful and essentially a while loop.
2) I also am under the impression that hitting the vsync timing is touchy business.
3) And Sleep(1) on Windows --- even though it should be "milliseconds", consumes an unknown amount of time.
Or is my best bet to estimate sleep intervals and implement an extra timer or 2 to pull this off by measuring and averaging.