Skip to content

Commit 48d8426

Browse files
fps_metrics: ignore fps values below 0.001
1 parent 0ab4c25 commit 48d8426

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fps_metrics.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ class fpsMetrics {
111111
if (resetting)
112112
return;
113113

114-
fps_stats.push_back({now, fps});
114+
if (fps > 0.0001)
115+
fps_stats.push_back({now, fps});
116+
115117
uint64_t ten_minute_duration = 600000000000ULL; // 10 minutes in nanoseconds
116118

117119
// Check if the system's uptime is less than 10 minutes

0 commit comments

Comments
 (0)