FrameInfo

data class FrameInfo(val frameTimeNanos: Long, val deltaSeconds: Float, val elapsedSeconds: Float)

Timing passed to an OnFrame callback, computed once per display refresh.

Constructors

Link copied to clipboard
constructor(frameTimeNanos: Long, deltaSeconds: Float, elapsedSeconds: Float)

Properties

Link copied to clipboard

Seconds since the previous frame, clamped to a sane maximum so a stalled or backgrounded frame doesn't produce a huge time jump. Zero on the first frame.

Link copied to clipboard

Seconds since this OnFrame entered the composition.

Link copied to clipboard

The frame time from withFrameNanos (monotonic, platform clock).