FPS counter fix
This commit is contained in:
@@ -116,8 +116,11 @@ void GSFrame::flip(draw_context_t)
|
|||||||
if (!Emu.GetTitleID().empty())
|
if (!Emu.GetTitleID().empty())
|
||||||
title += " | [" + Emu.GetTitleID() + ']';
|
title += " | [" + Emu.GetTitleID() + ']';
|
||||||
|
|
||||||
// can freeze
|
wxGetApp().CallAfter([this, title = std::move(title)]
|
||||||
|
{
|
||||||
SetTitle(wxString(title.c_str(), wxConvUTF8));
|
SetTitle(wxString(title.c_str(), wxConvUTF8));
|
||||||
|
});
|
||||||
|
|
||||||
m_frames = 0;
|
m_frames = 0;
|
||||||
fps_t.Start();
|
fps_t.Start();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user