RiveFrameRate

sealed interface RiveFrameRate

Controls how often Rive advances and draws an active animation.

This limits Rive frame production, not animation time. When capped, Rive still advances by the real elapsed time between rendered frames.

Inheritors

Types

Link copied to clipboard
data class Capped(val framesPerSecond: Float) : RiveFrameRate

Render at no more than framesPerSecond.

Link copied to clipboard

Render on every frame callback received from the platform frame clock.