Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Set the number of milliseconds to sleep after IDXGISwapChain::Present is called.
Syntax
HRESULT SetPresentPerRenderOpDelay(
UINT Milliseconds
);
Parameters
Milliseconds
Type: UINT
Number of milliseconds to sleep after Present is called.
Return value
Type: HRESULT
This method returns one of the following Direct3D 11 Return Codes.
Remarks
Note If you call this API in a Session 0 process, it returns DXGI_ERROR_NOT_CURRENTLY_AVAILABLE.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11sdklayers.h |
Library | D3D11.lib |