averageFps property

double get averageFps

Average FPS over the sample window. Returns 0.0 when the application is idle (no real frames within the timeout window).

Implementation

double get averageFps {
  if (_isIdle) return 0.0;
  final avg = averageFrameTime;
  if (avg.inMicroseconds == 0) return 0.0;
  return 1000000.0 / avg.inMicroseconds;
}