refreshRateGS method

double refreshRateGS(
  1. [int refreshPeriodicityMillis]

The frames per second as a gs value.

It targets the refresh rate for transitions with periodicity refreshPeriodicityMillis if provided, otherwise it targets the default refresh periodicity.

Returns null if no transitions have been created for the periodicity.

If the Flutter engine is not under stress, the refresh rate should be close to the inverse of the refresh periodicty. For example if the periodicity is 50 milliseconds, the refreh rate should be around 20 Hz.

See also:


static double refreshRateGS([int refreshPeriodicityMillis]) {
  return _SynchronousUpdater.getForPeriodicity(refreshPeriodicityMillis)