Home -> IRenderer -> WaitForDrawComplete

Description

Calls to this method will block until the current draw process is complete. Note that this method doesn't guarantee that the result of drawing operations have been made visible on the screen yet, or that any requested framebuffer output capture processes are complete, but those operations will at least be pending or in progress at the time this method returns.

ImportantImportant

Renderers are not required to make the results of any draw operations visible on screen until either the WaitForDrawComplete method is called, or the WaitForOutputCaptureComplete or StartNewFrame methods are called. While some renderers may make the image available without any of these methods being called, this is not guaranteed. If you are not rendering continuously, you must call this method before idling to ensure the image is made visible.

WarningWarning

Calling this method doesn't make the results of any framebuffer output capture operations from the draw process that was just completed available to the application. If your application needs to read captured framebuffer output from the frame which was just drawn, it must either call the WaitForOutputCaptureComplete method, or wait until the next frame begins drawing from a call to StartNewFrame.

Usage

void WaitForDrawComplete();

See also