What can cause IDXGISwapChain2
's frame latency waitable to timeout?
I'm trying to implement this recommendation from Microsoft: Reduce latency with DXGI 1.3 swap chains, but this code here from the article:
DWORD result = WaitForSingleObjectEx(
m_frameLatencyWaitableObject,
1000, // 1 second timeout (shouldn't ever occur)
true
);
sometimes (not always) returns WAIT_TIMEOUT although the article says it shouldn't ever occur. I probably do something I shouldn't, but what can cause this waitable to timeout?