IDXGISwapChain2::GetMaximumFrameLatency method (dxgi1_3.h)
Gets the number of frames that the swap chain is allowed to queue for rendering.
HRESULT GetMaximumFrameLatency( UINT *pMaxLatency );
The maximum number of back buffer frames that will be queued for the swap chain. This value is 1 by default, but should be set to 2 if the scene takes longer than it takes for one vertical refresh (typically about 16ms) to draw.
Returns S_OK if successful; otherwise, returns one of the following members of the D3DERR enumerated type:
|Minimum supported client||Windows 8.1 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2012 R2 [desktop apps | UWP apps]|