Fix fps limiter

This commit is contained in:
Shinovon 2026-05-03 08:09:10 +05:00
parent 25b5595bc5
commit b310f7081f

View file

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