Back to Filament

hasGpuFallenBehind

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

1.75.0713 B
Original Source

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

hasGpuFallenBehind

[main]
open fun hasGpuFallenBehind(): Boolean

Queries whether the GPU execution has fallen behind the CPU rendering execution.

This is highly useful when managing the application's presentation loop manually (e.g. with the FramePacer), allowing the client to proactively detect and react to a latency build-up before continuing with frame execution.

Return

true if the GPU pipeline is delayed, false if ready.