mirror of https://github.com/PCSX2/pcsx2.git
PCSX2: Add Percentage Counter for FPS.
The FPS has been Indicated in Paranthesis whereas Speed would provide the Integer percentage value based on the FPS limit for NTSC, PAL games. (59.94, 50) Thanks to avih for the suggestions.
This commit is contained in:
parent
f8104137ce
commit
304fc990a1
|
@ -557,6 +557,8 @@ void GSFrame::OnUpdateTitle( wxTimerEvent& evt )
|
|||
#endif
|
||||
|
||||
double fps = wxGetApp().FpsManager.GetFramerate();
|
||||
// The "not PAL" case covers both Region_NTSC and Region_NTSC_PROGRESSIVE
|
||||
float per = gsRegionMode == Region_PAL ? (fps * 100) / EmuConfig.GS.FrameratePAL.ToFloat() : (fps * 100) / EmuConfig.GS.FramerateNTSC.ToFloat();
|
||||
|
||||
char gsDest[128];
|
||||
gsDest[0] = 0; // No need to set whole array to NULL.
|
||||
|
@ -591,11 +593,11 @@ void GSFrame::OnUpdateTitle( wxTimerEvent& evt )
|
|||
|
||||
const u64& smode2 = *(u64*)PS2GS_BASE(GS_SMODE2);
|
||||
|
||||
SetTitle( pxsFmt( L"%s | %ls (%ls) | Limiter: %ls | fps: %6.02f%ls | State %d",
|
||||
SetTitle( pxsFmt( L"%s | %ls (%ls) | Limiter: %ls | Speed: %3d%% (%6.02f)%ls | State %d",
|
||||
WX_STR(fromUTF8(gsDest)),
|
||||
(smode2 & 1) ? L"Interlaced" : L"Progressive",
|
||||
(smode2 & 2) ? L"frame" : L"field",
|
||||
limiterStr, fps, cpuUsage.c_str(), States_GetCurrentSlot() )
|
||||
limiterStr, lround(per), fps, cpuUsage.c_str(), States_GetCurrentSlot() )
|
||||
);
|
||||
|
||||
//States_GetCurrentSlot()
|
||||
|
|
Loading…
Reference in New Issue