cancel
Showing results for 
Search instead for 
Did you mean: 

Does SetMaximumFrameLatency actually work?

EddieEdwards
Honored Guest
Does IDXGIDevice1::SetMaximumFrameLatency actually work in DX11? Specifically on Windows 7 with latest drivers on an R9 290X?

I'm calling SetMaximumFrameLatency(1) right before ovrHmd_AttachToWindow, as the samples do, and it's succeeding (S_OK), but I still need to call ovrHmd_EndFrame three times before anything shows up on the HMD. Doesn't that indicate the latency setting is still at 3? Or am I misunderstanding the purpose of this call? In which case, why does it take three submits before anything appears on the HMD?
1 REPLY 1

DeanOfTheDriver
Protege
The delayed display activation is an artifact of direct mode. The two backbuffers that need to be mapped in GPU in direct mode need to be referenced first so the OS will map them for us. When they're ready we can finally turn on the display. It does not mean you have any additional latency--the built-in DK2 latency tester values should be reporting 0ms latency and the CAPI has calls that can supply these numbers for verification.