currentFps property

double get currentFps

Average FPS over the most recent window samples (~1s at 60Hz).

Implementation

double get currentFps {
  if (_samples.isEmpty) return 60;
  final recent = _samples.length > 60
      ? _samples.sublist(_samples.length - 60)
      : _samples;
  final total = recent.fold<double>(0, (sum, s) => sum + s.fps);
  return total / recent.length;
}