IDirect3DDevice9Ex::GetMaximumFrameLatency
IDirect3DDevice9Ex::GetMaximumFrameLatency
Retrieves the number of frames of data that the system is allowed to queue.
GetMaximumFrameLatency( UINT * pMaxLatency );
Parameters
- pMaxLatency
Returns the number of frames that can be queued for render. The value is typically 3, but can range from 1 to 255.
Remarks
Three frames are commonly used in a render loop - one frame for the back buffer, one frame that is currently being rendered, and one frame getting ready to render. However, there are scenarios when more latency may be desired. One example could be when video playback is supported. In this scenario, the CPU is required to playback video, and the render loop can be told to queue up more frames in the queue, while playback occurs.
See Also
IDirect3DDevice9Ex InterfaceIDirect3DDevice9Ex::SetGPUThreadPriority Method