VideoPresenter: Only count a missed vblank once per on-time present

This commit is contained in:
Stenzek committed 2026-10-31 22:03:20 +10:00
1 parent 310ee0217a
commit e80857d868
1 file changed
+2 -2
+2 -2
View File
@@ -1523,8 +1523,8 @@ bool VideoPresenter::IsPresentLate(u64 present_time)
s_locals.backlog_probe_interval = std::min(s_locals.backlog_probe_interval * 2.0, MAX_BACKLOG_PROBE_INTERVAL);
}
// If the previous frame was presented on time, the throttler's margin wasn't enough to display it.
if (s_locals.last_present_on_time)
// If the previous present was on time, the throttler's margin wasn't enough to display it.
if (std::exchange(s_locals.last_present_on_time, false))
s_locals.missed_vblank_count.fetch_add(1, std::memory_order_release);
return true;