Back to Filament

setPresentationTime

docs/android/dokka/filament-android/com.google.android.filament/-renderer/set-presentation-time.md

1.75.0937 B
Original Source

//filament-android/com.google.android.filament/Renderer/setPresentationTime

setPresentationTime

[main]
open fun setPresentationTime(monotonicClockNanos: Long)

Set the time at which the frame must be presented to the display hardware. This value is used to configure the hardware and must typically be strictly smaller than the desired presentation time (i.e. it must include some headroom but not too much). For instance, on Android, it is typically set to desired_presentation_time - vsync_period / 2. This behavior can vary on other platforms. This must be called before endFrame.

Parameters

main

monotonicClockNanosThe presentation configuration timestamp in nanoseconds on the steady clock.