OpenGL 0.4.3 VSync to 75hz Possible? Hitting 400-1000FPS...
Hi,
I can get everything to run smoothly in OpenGL in both extended and direct modes using the 0.4.3 SDK. The only problem I seem to be having is that my code isn't rate-limited as it is very simple so my framerate calculation is showing it running at a silly 400-1000FPS which is much higher than the 75Hz required. Either my calculation is wrong, or I'm using more CPU than necessary and begs the question if there is a way to VSync directly and limit my framerate. I'm using GLFW to create the windows.
It is possible that the Oculus SDK gives a special OpenGL context and doesn't glFinish frames unless it decides to render them and so I end up clearing the screen and re-rendering a few times before it decides it wants to glFinish and only then do I pay the high price of stalling and warping. Just a guess here.
Thanks!
I can get everything to run smoothly in OpenGL in both extended and direct modes using the 0.4.3 SDK. The only problem I seem to be having is that my code isn't rate-limited as it is very simple so my framerate calculation is showing it running at a silly 400-1000FPS which is much higher than the 75Hz required. Either my calculation is wrong, or I'm using more CPU than necessary and begs the question if there is a way to VSync directly and limit my framerate. I'm using GLFW to create the windows.
It is possible that the Oculus SDK gives a special OpenGL context and doesn't glFinish frames unless it decides to render them and so I end up clearing the screen and re-rendering a few times before it decides it wants to glFinish and only then do I pay the high price of stalling and warping. Just a guess here.
Thanks!
