diff options
| author | 2020-04-23 16:14:33 -0300 | |
|---|---|---|
| committer | 2020-04-23 16:14:33 -0300 | |
| 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.gz yuzu-26f2820ae3f0c85cf4a6a2eb7ddcca70cdbd0a20.tar.xz yuzu-26f2820ae3f0c85cf4a6a2eb7ddcca70cdbd0a20.zip | |
Merge pull request #3768 from H27CK/cmd-title-fmt
Fix format error in performance statistics
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() { | |||
| 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 | } |