Back to Filament

pauseRenderThread

docs/android/dokka/filament-android/com.google.android.filament/-renderer/pause-render-thread.md

1.75.0697 B
Original Source

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

pauseRenderThread

[main]
open fun pauseRenderThread(durationNanos: Long)

Stalls the render thread (GPU submission pipeline) for the given duration in nanoseconds.

This is useful for simulating long rendering frames (e.g. testing buffer stuffing recovery) without blocking the application's main event loop thread.

Parameters

main

durationNanosThe duration to pause the render thread in nanoseconds.