Set the number of milliseconds to sleep after IDXGISwapChain::Present is called.
public:
HRESULT SetPresentPerRenderOpDelay(
UINT Milliseconds
)
Milliseconds
Type: UINTÂ
Number of milliseconds to sleep after Present is called.
Type: HRESULTÂ
This method returns one of the following Direct3D 11 return codes.
Note
If you call this API in a Session 0 process, it returns DXGI_ERROR_NOT_CURRENTLY_AVAILABLE.
The application will only sleep if D3D11_DEBUG_FEATURE_PRESENT_PER_RENDER_OP is a set in the feature mask. If that flag is not set the number of milliseconds is set but ignored and the application does not sleep. 10ms is used as a default value if this method is never called.
Header: Declared in d3d11sdklayers.h.
Library: Use d3d11.lib.