HardwareRenderer.FrameRenderRequest.SetVsyncTime(Int64) Method

Definition

Sets the vsync time that represents the start point of this frame.

[Android.Runtime.Register("setVsyncTime", "(J)Landroid/graphics/HardwareRenderer$FrameRenderRequest;", "", ApiSince=29)]
public Android.Graphics.HardwareRenderer.FrameRenderRequest SetVsyncTime(long vsyncTime);
[<Android.Runtime.Register("setVsyncTime", "(J)Landroid/graphics/HardwareRenderer$FrameRenderRequest;", "", ApiSince=29)>]
member this.SetVsyncTime : int64 -> Android.Graphics.HardwareRenderer.FrameRenderRequest

Parameters

vsyncTime
Int64

The vsync timestamp for this frame. The timestamp is in nanoseconds and should come from a CLOCK_MONOTONIC source.

Returns

this instance. This value cannot be null.

Attributes

Remarks

Sets the vsync time that represents the start point of this frame. Typically this comes from Choreographer.FrameCallback. Other compatible time sources include System.nanoTime(), however if the result is being displayed on-screen then using Choreographer is strongly recommended to ensure smooth animations. If the clock source is not from a CLOCK_MONOTONIC source then any animations driven directly by RenderThread will not be synchronized properly with the current frame.

Android reference for android.graphics.HardwareRenderer.FrameRenderRequest.setVsyncTime.

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.

Applies to