Back to Filament

applyPresentationTime

docs/android/dokka/filament-android/com.google.android.filament.android/-frame-pacer/apply-presentation-time.md

1.75.01.2 KB
Original Source

//filament-android/com.google.android.filament.android/FramePacer/applyPresentationTime

applyPresentationTime

[main]
open fun applyPresentationTime(renderer: Renderer)

Applies the computed Latency Offset timestamp directly onto the rendering command stream.

This instructs the underlying display compositor (such as SurfaceFlinger) exactly when to latch and present the buffer, eliminating micro-stutter. This must be called before endFrame.

Calling this method automatically applies the target presentation time, desired presentation time, and rendering deadline onto the target Renderer (via setPresentationTime, setDesiredPresentationTime, and setRenderingDeadline).

Parameters

main

rendererThe Filament Renderer displaying the target View.