Back to Filament

hasGpuFallenBehind

docs/android/dokka/filament-android/com.google.android.filament.android/-frame-pacer/has-gpu-fallen-behind.md

1.75.01001 B
Original Source

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

hasGpuFallenBehind

[main]
open fun hasGpuFallenBehind(renderer: Renderer): Boolean

Checks if the GPU rendering pipeline has fallen behind the CPU submission rate.

If the GPU is delayed, this method returns true and automatically rolls back any internal cadence state advanced by setupFrame. The client should skip the frame (via skipFrame) and refrain from calling applyPresentationTime() or beginFrame().

Return

true if the GPU has fallen behind, false otherwise.

Parameters

main

rendererThe Filament Renderer displaying the target View.