HardwareRenderer.FrameRenderRequest.SetWaitForPresent(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets whether to wait for frame submission.
[Android.Runtime.Register("setWaitForPresent", "(Z)Landroid/graphics/HardwareRenderer$FrameRenderRequest;", "", ApiSince=29)]
public Android.Graphics.HardwareRenderer.FrameRenderRequest SetWaitForPresent(bool shouldWait);
[<Android.Runtime.Register("setWaitForPresent", "(Z)Landroid/graphics/HardwareRenderer$FrameRenderRequest;", "", ApiSince=29)>]
member this.SetWaitForPresent : bool -> Android.Graphics.HardwareRenderer.FrameRenderRequest
Parameters
- shouldWait
- Boolean
If true, request that the next call to SyncAndDraw() wait for frame submission.
Returns
this instance. This value cannot be null.
- Attributes
Remarks
If this is true and SyncAndDraw() does not return FrameDropped or an error, the frame has been submitted to the surface when the call returns. This does not guarantee that the frame is visible on the display. The default and typically recommended value is false, because waiting prevents pipelining and reduces throughput. Waiting can be useful in SurfaceRedrawNeeded(ISurfaceHolder) to ensure first-frame consistency with other surfaces.
Android reference for android.graphics.HardwareRenderer.FrameRenderRequest.setWaitForPresent.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.