Fix R* optimization that prevents peds to spawn

This commit is contained in:
erorcun 2021-08-01 13:56:24 +03:00
parent 192190769d
commit 418bf3ab69

View File

@ -903,7 +903,13 @@ void CGame::Process(void)
CEventList::Update(); CEventList::Update();
CParticle::Update(); CParticle::Update();
gFireManager.Update(); gFireManager.Update();
// Otherwise even on 30 fps most probably you won't see any peds around Ocean View Hospital
#if defined FIX_BUGS && !defined SQUEEZE_PERFORMANCE
if (processTime > 2) {
#else
if (processTime >= 2) { if (processTime >= 2) {
#endif
CPopulation::Update(false); CPopulation::Update(false);
} else { } else {
uint32 startTime = CTimer::GetCurrentTimeInCycles() / CTimer::GetCyclesPerMillisecond(); uint32 startTime = CTimer::GetCurrentTimeInCycles() / CTimer::GetCyclesPerMillisecond();