summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorH27CK <9727727+H27CK@users.noreply.github.com>2020-04-23 03:46:30 +0200
committerH27CK <9727727+H27CK@users.noreply.github.com>2020-04-23 04:31:26 +0200
commita26a72551591acef67d82650ff6de9be204c2521 (patch)
tree14678e6836efe5d23be8e5a0f6934e9b5eb17a19 /src
parentMerge pull request #3767 from ReinUsesLisp/point-size-pipeline (diff)
downloadyuzu-a26a72551591acef67d82650ff6de9be204c2521.tar
yuzu-a26a72551591acef67d82650ff6de9be204c2521.tar.gz
yuzu-a26a72551591acef67d82650ff6de9be204c2521.tar.bz2
yuzu-a26a72551591acef67d82650ff6de9be204c2521.tar.lz
yuzu-a26a72551591acef67d82650ff6de9be204c2521.tar.xz
yuzu-a26a72551591acef67d82650ff6de9be204c2521.tar.zst
yuzu-a26a72551591acef67d82650ff6de9be204c2521.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
index 19584360c..e5e684206 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
@@ -181,9 +181,10 @@ void EmuWindow_SDL2::PollEvents() {
const u32 current_time = SDL_GetTicks();
if (current_time > last_time + 2000) {
const auto results = Core::System::GetInstance().GetAndResetPerfStats();
- const auto title = fmt::format(
- "yuzu {} | {}-{} | FPS: {:.0f} ({:.0%})", Common::g_build_fullname,
- Common::g_scm_branch, Common::g_scm_desc, results.game_fps, results.emulation_speed);
+ const auto title =
+ fmt::format("yuzu {} | {}-{} | FPS: {:.0f} ({:.0f}%)", Common::g_build_fullname,
+ Common::g_scm_branch, Common::g_scm_desc, results.game_fps,
+ results.emulation_speed * 100.0);
SDL_SetWindowTitle(render_window, title.c_str());
last_time = current_time;
}