Taal

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.IFrameCallback. Other compatible time sources include NanoTime(). If the result is displayed on screen, use a Choreographer callback for smooth animations. If the clock source is not CLOCK_MONOTONIC, animations driven directly by the render thread 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