Back to Filament

getFrameInfoHistory

docs/android/dokka/filament-android/com.google.android.filament/-renderer/get-frame-info-history.md

1.75.01.0 KB
Original Source

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

getFrameInfoHistory

[main]
open fun getFrameInfoHistory(outHistory: Array<Renderer.FrameInfo>): Int

Retrieve a history of frame timing information. The maximum frame history size is given by getMaxFrameHistorySize.

All or part of the history can be lost when using a different SwapChain in beginFrame(). Provide a pre-allocated array of FrameInfo to receive historical records without garbage collection allocations.

Return

the number of FrameInfo populated.

Parameters

main

outHistorypre-allocated array of FrameInfo.

See also

beginFrame