Enable fps limiter

This commit is contained in:
Shinovon 2026-05-03 07:31:40 +05:00
parent e938d48607
commit 25b5595bc5

View file

@ -379,10 +379,10 @@ public:
break;
case GS_PLAYING_GAME:
if (!IsForegroundApp()) break;
// float ms = (float)CTimer::GetCurrentTimeInCycles() / (float)tickPeriod; //(float)CTimer::GetCyclesPerMillisecond();
float ms = (float)CTimer::GetCurrentTimeInCycles() / (float)tickPeriod; //(float)CTimer::GetCyclesPerMillisecond();
// if ( RwInitialised )
// {
// if (!CMenuManager::m_PrefsFrameLimiter || (1000.0f / (float)RsGlobal.maxFPS) < ms)
if (!CMenuManager::m_PrefsFrameLimiter || (1000.0f / (float)RsGlobal.maxFPS) < ms)
RsEventHandler(rsIDLE, (void *)TRUE);
// }
break;