Skip to content

Commit

Permalink
fps_metrics: ignore fps values below 0.001
Browse files Browse the repository at this point in the history
  • Loading branch information
flightlessmango committed Feb 6, 2024
1 parent 0ab4c25 commit 48d8426
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fps_metrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ class fpsMetrics {
if (resetting)
return;

fps_stats.push_back({now, fps});
if (fps > 0.0001)
fps_stats.push_back({now, fps});

uint64_t ten_minute_duration = 600000000000ULL; // 10 minutes in nanoseconds

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

0 comments on commit 48d8426

Please sign in to comment.