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:
parent
6014d4dc6d
commit
ce4960c89c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user