UI: Add fps indicator
This adds a fps indicator to the status bar, to the right of CPU usage. Closes jp9000/obs-studio#585
This commit is contained in:
parent
95ce556051
commit
88d7f8129b
@ -146,7 +146,9 @@ void OBSBasicStatusBar::UpdateCPUUsage()
|
||||
|
||||
QString text;
|
||||
text += QString("CPU: ") +
|
||||
QString::number(main->GetCPUUsage(), 'f', 1) + QString("%");
|
||||
QString::number(main->GetCPUUsage(), 'f', 1) + QString("%, ") +
|
||||
QString::number(obs_get_active_fps(), 'f', 2) + QString(" fps");
|
||||
|
||||
cpuUsage->setText(text);
|
||||
cpuUsage->setMinimumWidth(cpuUsage->width());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user