Back to Filament

flush

docs/android/dokka/filament-android/com.google.android.filament/-engine/flush.md

1.75.0433 B
Original Source

//filament-android/com.google.android.filament/Engine/flush

flush

[main]
open fun flush()

Kicks the hardware thread (e.g. the OpenGL, Vulkan or Metal thread) but does not wait for commands to be either executed or the hardware finished.

This is typically used after creating a lot of objects to start draining the command queue which has a limited size.