Back to Filament

setVsyncTime

docs/android/dokka/filament-android/com.google.android.filament/-renderer/set-vsync-time.md

1.75.0792 B
Original Source

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

setVsyncTime

[main]
open fun setVsyncTime(steadyClockTimeNano: Long)

The use of this method is optional. It sets the VSYNC time expressed as the duration in nanosecond since epoch of std::chrono::steady_clock. If called, passing 0 to frameTimeNanos in Renderer.BeginFrame will use this time instead.

Parameters

main

steadyClockTimeNanoduration in nanosecond since epoch of std::chrono::steady_clock

See also

Engine
Renderer