Skip to content

Commit

Permalink
UI: Add fps indicator
Browse files Browse the repository at this point in the history
This adds a fps indicator to the status bar, to the right of CPU usage.

Closes obsproject#585
  • Loading branch information
cg2121 authored and jp9000 committed Aug 22, 2016
1 parent 95ce556 commit 88d7f81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion obs/window-basic-status-bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 88d7f81

Please sign in to comment.