Browse Source

UI: Add fps indicator

This adds a fps indicator to the status bar, to the right of CPU usage.

Closes jp9000/obs-studio#585
cg2121 9 năm trước cách đây
mục cha
commit
88d7f8129b
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      obs/window-basic-status-bar.cpp

+ 3 - 1
obs/window-basic-status-bar.cpp

@@ -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());
 }