Back to Filament

setFrameRate

docs/android/dokka/filament-android/com.google.android.filament/-swap-chain/set-frame-rate.md

1.75.01.1 KB
Original Source

//filament-android/com.google.android.filament/SwapChain/setFrameRate

setFrameRate

[main]
open fun setFrameRate(frameRate: Float)

Sets the intended frame rate for this SwapChain.

Parameters

main

frameRateThe intended frame rate in frames per second. 0.0f clears/resets the rate.

[main]
open fun setFrameRate(frameRate: Float, compatibility: SwapChain.FrameRateCompatibility, strategy: SwapChain.ChangeFrameRateStrategy)

Sets the intended frame rate for this SwapChain.

Parameters

main

frameRateThe intended frame rate in frames per second. 0.0f clears/resets the rate.
compatibilityFrame rate compatibility mode.
strategyChange strategy for non-seamless transitions.