mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-28 02:06:12 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user