GSFrame: Update title only after rendering starts

The title bar will display "progressive" for 1-2 seconds when booting an interlaced game at some cases, it's due to an uninitialized SMODE2 register, so let's wait till the rendering starts to allow time for the
SMODE2 init and get the proper values from games.
This commit is contained in:
Akash 2017-05-02 16:12:09 +05:30 committed by Gregory Hainaut
parent 2dcc85d64c
commit 7a2cbfd6bf
1 changed files with 7 additions and 0 deletions

View File

@ -587,6 +587,13 @@ GSPanel* GSFrame::GetViewport()
void GSFrame::OnUpdateTitle( wxTimerEvent& evt )
{
// Update the title only after the completion of at least a single Vsync, it's pointless to display the fps
// when there are have been no frames rendered and SMODE2 register seems to fresh start with 0 on all the bitfields which
// leads to the value of INT bit as 0 initially and the games are mentioned as progressive which is a bit misleading,
// to prevent such issues, let's update the title after the actual frame rendering starts.
if (g_FrameCount == 0)
return;
double fps = wxGetApp().FpsManager.GetFramerate();
FastFormatUnicode cpuUsage;