From 7a2cbfd6bf29fb4d676eb1c4d013bfe2c0868679 Mon Sep 17 00:00:00 2001 From: Akash Date: Tue, 2 May 2017 16:12:09 +0530 Subject: [PATCH] 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. --- pcsx2/gui/FrameForGS.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pcsx2/gui/FrameForGS.cpp b/pcsx2/gui/FrameForGS.cpp index dcc5505afc..b52f7b08e7 100644 --- a/pcsx2/gui/FrameForGS.cpp +++ b/pcsx2/gui/FrameForGS.cpp @@ -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;