Back to Filament

clearFrameHistory

docs/android/dokka/filament-android/com.google.android.filament/-view/clear-frame-history.md

1.75.0735 B
Original Source

//filament-android/com.google.android.filament/View/clearFrameHistory

clearFrameHistory

[main]
open fun clearFrameHistory(engine: Engine)

When certain temporal features are used (e.g.: TAA or Screen-space reflections), the view keeps a history of previous frame renders associated with the Renderer the view was last used with. When switching Renderer, it may be necessary to clear that history by calling this method. Similarly, if the whole content of the screen change, like when a cut-scene starts, clearing the history might be needed to avoid artifacts due to the previous frame being very different.