maxFrameRate property

double? maxFrameRate
final

Caps how often the view ticks and renders, in frames per second. Null renders every display frame.

Each frame renders on the display refresh nearest its deadline, so a cap that divides the refresh rate gives an even cadence (60 on a 120 Hz display renders every other refresh), which suits screen recording and saves power. Skipped refreshes neither call onTick nor repaint.

Implementation

final double? maxFrameRate;