summaryrefslogtreecommitdiffstats
path: root/src/yuzu/main.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2022-04-18 23:21:02 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-10-06 21:00:53 +0200
commitcdce7f781bafabc364e61fa5cabf938349c9b82e (patch)
treef2817ceb0bb60deb501c619e204445eda5538a92 /src/yuzu/main.cpp
parentNvDec: Fix regressions. (diff)
downloadyuzu-cdce7f781bafabc364e61fa5cabf938349c9b82e.tar
yuzu-cdce7f781bafabc364e61fa5cabf938349c9b82e.tar.gz
yuzu-cdce7f781bafabc364e61fa5cabf938349c9b82e.tar.bz2
yuzu-cdce7f781bafabc364e61fa5cabf938349c9b82e.tar.lz
yuzu-cdce7f781bafabc364e61fa5cabf938349c9b82e.tar.xz
yuzu-cdce7f781bafabc364e61fa5cabf938349c9b82e.tar.zst
yuzu-cdce7f781bafabc364e61fa5cabf938349c9b82e.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index c63ce3a30..4146ebc2c 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -3,6 +3,7 @@
#include <cinttypes>
#include <clocale>
+#include <cmath>
#include <memory>
#include <thread>
#ifdef __APPLE__
@@ -3451,9 +3452,10 @@ void GMainWindow::UpdateStatusBar() {
}
if (!Settings::values.use_speed_limit) {
game_fps_label->setText(
- tr("Game: %1 FPS (Unlocked)").arg(results.average_game_fps, 0, 'f', 0));
+ tr("Game: %1 FPS (Unlocked)").arg(std::round(results.average_game_fps), 0, 'f', 0));
} else {
- game_fps_label->setText(tr("Game: %1 FPS").arg(results.average_game_fps, 0, 'f', 0));
+ game_fps_label->setText(
+ tr("Game: %1 FPS").arg(std::round(results.average_game_fps), 0, 'f', 0));
}
emu_frametime_label->setText(tr("Frame: %1 ms").arg(results.frametime * 1000.0, 0, 'f', 2));