Back to Filament

setDesiredPresentationTime

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

1.75.0805 B
Original Source

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

setDesiredPresentationTime

[main]
open fun setDesiredPresentationTime(monotonicClockNanos: Long)

Set the real desired presentation time targeted for this frame. Unlike setPresentationTime(), which configures hardware headroom, this is the exact target presentation time and is used for FrameInfo frame history reporting. This must be called before endFrame.

Parameters

main

monotonicClockNanosThe desired presentation timestamp in nanoseconds on the steady clock.