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.
This commit is contained in:
jp9000 2016-04-25 14:34:21 -07:00
parent 6014d4dc6d
commit ce4960c89c

View File

@ -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;