summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar H27CK2020-04-23 03:46:30 +0200
committerGravatar H27CK2020-04-23 04:31:26 +0200
commita26a72551591acef67d82650ff6de9be204c2521 (patch)
tree14678e6836efe5d23be8e5a0f6934e9b5eb17a19 /src
parentMerge pull request #3767 from ReinUsesLisp/point-size-pipeline (diff)
downloadyuzu-a26a72551591acef67d82650ff6de9be204c2521.tar.gz
yuzu-a26a72551591acef67d82650ff6de9be204c2521.tar.xz
yuzu-a26a72551591acef67d82650ff6de9be204c2521.zip
Fix format error in performance statistics
Formatting
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() {
181 const u32 current_time = SDL_GetTicks(); 181 const u32 current_time = SDL_GetTicks();
182 if (current_time > last_time + 2000) { 182 if (current_time > last_time + 2000) {
183 const auto results = Core::System::GetInstance().GetAndResetPerfStats(); 183 const auto results = Core::System::GetInstance().GetAndResetPerfStats();
184 const auto title = fmt::format( 184 const auto title =
185 "yuzu {} | {}-{} | FPS: {:.0f} ({:.0%})", Common::g_build_fullname, 185 fmt::format("yuzu {} | {}-{} | FPS: {:.0f} ({:.0f}%)", Common::g_build_fullname,
186 Common::g_scm_branch, Common::g_scm_desc, results.game_fps, results.emulation_speed); 186 Common::g_scm_branch, Common::g_scm_desc, results.game_fps,
187 results.emulation_speed * 100.0);
187 SDL_SetWindowTitle(render_window, title.c_str()); 188 SDL_SetWindowTitle(render_window, title.c_str());
188 last_time = current_time; 189 last_time = current_time;
189 } 190 }