performanceRating property

String get performanceRating

Gets a human-readable performance rating.

Returns a string describing the current performance level.

Implementation

String get performanceRating {
  if (fps >= 25.0 && processingTimeMs <= 50.0) return 'Excellent';
  if (fps >= 15.0 && processingTimeMs <= 100.0) return 'Good';
  if (fps >= 10.0 && processingTimeMs <= 150.0) return 'Fair';
  return 'Poor';
}