mirror of https://github.com/PCSX2/pcsx2.git
ImGuiOverlays: Internal FPS stat regression fix
This commit is contained in:
parent
099e1f900d
commit
cbe5a7ba4c
|
@ -1054,8 +1054,14 @@ void EmuThread::updatePerformanceMetrics(bool force)
|
|||
|
||||
if (gfps != m_last_game_fps || force)
|
||||
{
|
||||
QString text;
|
||||
if (gfps == 0)
|
||||
text = tr("FPS: N/A");
|
||||
else
|
||||
text = tr("FPS: %1").arg(gfps, 0, 'f', 0);
|
||||
|
||||
QMetaObject::invokeMethod(g_main_window->getStatusFPSWidget(), "setText", Qt::QueuedConnection,
|
||||
Q_ARG(const QString&, tr("FPS: %1").arg(gfps, 0, 'f', 0)));
|
||||
Q_ARG(const QString&, text));
|
||||
m_last_game_fps = gfps;
|
||||
}
|
||||
|
||||
|
|
|
@ -221,18 +221,16 @@ __ri void ImGuiManager::DrawPerformanceOverlay(float& position_y, float scale, f
|
|||
switch (PerformanceMetrics::GetInternalFPSMethod())
|
||||
{
|
||||
case PerformanceMetrics::InternalFPSMethod::GSPrivilegedRegister:
|
||||
text.append_format("FPS: {:.2f} [P]", PerformanceMetrics::GetInternalFPS(),
|
||||
PerformanceMetrics::GetFPS());
|
||||
text.append_format("FPS: {:.2f} [P]", PerformanceMetrics::GetInternalFPS());
|
||||
break;
|
||||
|
||||
case PerformanceMetrics::InternalFPSMethod::DISPFBBlit:
|
||||
text.append_format("FPS: {:.2f} [B]", PerformanceMetrics::GetInternalFPS(),
|
||||
PerformanceMetrics::GetFPS());
|
||||
text.append_format("FPS: {:.2f} [B]", PerformanceMetrics::GetInternalFPS());
|
||||
break;
|
||||
|
||||
case PerformanceMetrics::InternalFPSMethod::None:
|
||||
default:
|
||||
text.append_format("FPS: {:.2f}", PerformanceMetrics::GetFPS());
|
||||
text.append("FPS: N/A");
|
||||
break;
|
||||
}
|
||||
first = false;
|
||||
|
|
Loading…
Reference in New Issue