diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-04-23 21:14:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 21:14:33 +0200 |
commit | 26f2820ae3f0c85cf4a6a2eb7ddcca70cdbd0a20 (patch) | |
tree | 504782e0fb1e841b7c50132c1fd4579b63acdd4b /src | |
parent | kernel: memory: Improve implementation of device shared memory. (#3707) (diff) | |
parent | Fix format error in performance statistics (diff) | |
download | yuzu-26f2820ae3f0c85cf4a6a2eb7ddcca70cdbd0a20.tar yuzu-26f2820ae3f0c85cf4a6a2eb7ddcca70cdbd0a20.tar.gz yuzu-26f2820ae3f0c85cf4a6a2eb7ddcca70cdbd0a20.tar.bz2 yuzu-26f2820ae3f0c85cf4a6a2eb7ddcca70cdbd0a20.tar.lz yuzu-26f2820ae3f0c85cf4a6a2eb7ddcca70cdbd0a20.tar.xz yuzu-26f2820ae3f0c85cf4a6a2eb7ddcca70cdbd0a20.tar.zst yuzu-26f2820ae3f0c85cf4a6a2eb7ddcca70cdbd0a20.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | 7 |
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; } |