IDXGISwapChain2::SetMaximumFrameLatency method

Sets the number of frames that the swap chain is allowed to queue for rendering.

Syntax


HRESULT SetMaximumFrameLatency(
  [in]  UINT MaxLatency
);

Parameters

MaxLatency [in]

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.

Return value

Returns S_OK if successful; otherwise, DXGI_ERROR_DEVICE_REMOVED if the device was removed.

Requirements

Minimum supported client

Windows 8.1 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 R2 [desktop apps | Windows Store apps]

Header

Dxgi1_3.h

Library

Dxgi.lib

See also

DirectX latency sample
IDXGISwapChain2
GetMaximumFrameLatency

 

 

Community Additions

ADD
Show:
© 2015 Microsoft