From 44b2df27eaab4bd114bd44c99aae03203fa912d0 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sat, 28 Jan 2017 03:19:39 +0300 Subject: [PATCH] FPS counter fix --- rpcs3/Gui/GSFrame.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpcs3/Gui/GSFrame.cpp b/rpcs3/Gui/GSFrame.cpp index 4527e0908b..73d35d71ca 100644 --- a/rpcs3/Gui/GSFrame.cpp +++ b/rpcs3/Gui/GSFrame.cpp @@ -116,8 +116,11 @@ void GSFrame::flip(draw_context_t) if (!Emu.GetTitleID().empty()) title += " | [" + Emu.GetTitleID() + ']'; - // can freeze - SetTitle(wxString(title.c_str(), wxConvUTF8)); + wxGetApp().CallAfter([this, title = std::move(title)] + { + SetTitle(wxString(title.c_str(), wxConvUTF8)); + }); + m_frames = 0; fps_t.Start(); }