Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
loickolor's avatar
loickolor
Honored Guest
11 years ago

OpenGL and zero latency

Hi,

I'm using OpenGL API on both Windows and Mac. I would like to have zero latency on Oculus sensor. Here is my experience :

On Windows I try to use Direct Access mode, when I call ovrHmd_AttachToWindow() it returns true but it does nothing (my window still appears on computer screen and Oculus stays off). Is there any example of code with OpenGL API and C++ (ideally with Qt framework) ?
Otherwise, with Extend mode is there a way to have zero latency ?

On Mac only Extend mode is available.
On Mac 10.8 I put my window in fullscreen mode and I have zero latency. I think it's due to Mac 10.8 fullscreen window management which display only my window (other screens are turned off by Mac OS) and so it can take shorcuts in hard rendering pipeline.
On Mac 10.9 the behavior is different. In fact fullscreen mode still shows others screens and app windows. And so there is no more zero latency.
I noticed that on Oculus Configuration Utility, "Show Demo Scene" example has zero latency and it doesn't use fullscreen mode. So what is the trick in this example ? Can we have some example of C++ code which is doing it ?

Regards

4 Replies