mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 16:52:46 +01:00
Fix format error in performance statistics
Formatting
This commit is contained in:
parent
2c806c5fd3
commit
a26a725515
1 changed files with 4 additions and 3 deletions
|
@ -181,9 +181,10 @@ void EmuWindow_SDL2::PollEvents() {
|
||||||
const u32 current_time = SDL_GetTicks();
|
const u32 current_time = SDL_GetTicks();
|
||||||
if (current_time > last_time + 2000) {
|
if (current_time > last_time + 2000) {
|
||||||
const auto results = Core::System::GetInstance().GetAndResetPerfStats();
|
const auto results = Core::System::GetInstance().GetAndResetPerfStats();
|
||||||
const auto title = fmt::format(
|
const auto title =
|
||||||
"yuzu {} | {}-{} | FPS: {:.0f} ({:.0%})", Common::g_build_fullname,
|
fmt::format("yuzu {} | {}-{} | FPS: {:.0f} ({:.0f}%)", Common::g_build_fullname,
|
||||||
Common::g_scm_branch, Common::g_scm_desc, results.game_fps, results.emulation_speed);
|
Common::g_scm_branch, Common::g_scm_desc, results.game_fps,
|
||||||
|
results.emulation_speed * 100.0);
|
||||||
SDL_SetWindowTitle(render_window, title.c_str());
|
SDL_SetWindowTitle(render_window, title.c_str());
|
||||||
last_time = current_time;
|
last_time = current_time;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue