From ce4960c89c97410c6744dbbc5a98b072973d517f Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 25 Apr 2016 14:34:21 -0700 Subject: [PATCH] UI: Don't alert user of encode lag if skip count < 10 Sometimes encoders might have a tiny insignificant amount of lag unintentionally for whatever reason (for example VP9 sometimes lags on startup by a frame or two), so don't warn the user if the skip count is below 10. --- obs/window-basic-status-bar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obs/window-basic-status-bar.cpp b/obs/window-basic-status-bar.cpp index 5ad342737..660544f69 100644 --- a/obs/window-basic-status-bar.cpp +++ b/obs/window-basic-status-bar.cpp @@ -261,7 +261,7 @@ void OBSBasicStatusBar::UpdateStatusBar() int diff = skipped - lastSkippedFrameCount; double percentage = double(skipped) / double(total) * 100.0; - if (diff && percentage >= 0.1f) + if (diff > 10 && percentage >= 0.1f) showMessage(QTStr("HighResourceUsage"), 4000); lastSkippedFrameCount = skipped;