Back to Filament

setRenderer

docs/android/dokka/filament-android/com.google.android.filament.android/-choreographer-helper/set-renderer.md

1.75.01006 B
Original Source

//filament-android/com.google.android.filament.android/ChoreographerHelper/setRenderer

setRenderer

[main]
open fun setRenderer(renderer: Renderer)

Attaches an optional Filament Renderer to be automatically paced by this helper.

When configured, the helper automatically calls setDesiredPresentationTime and setRenderingDeadline using the preferred FrameTimeline on Android 13+.

If you are using FramePacer in your rendering loop, leave this set to null.

Parameters

main

rendererThe Renderer to configure, or null to disable automated timeline pacing.