getPerformanceReport static method
Get performance report
Implementation
static Map<String, dynamic> getPerformanceReport() {
final Duration avgFrameTime = getAverageFrameTime();
final double fps = avgFrameTime.inMicroseconds > 0
? 1000000.0 / avgFrameTime.inMicroseconds
: 0.0;
return {
'averageFrameTime': avgFrameTime.inMilliseconds,
'estimatedFPS': fps.round(),
'isGoodPerformance': isPerformanceGood(),
'isMobileWeb': RoughMobileWeb.isMobileWeb,
'frameCount': _frameTimes.length,
};
}