diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-01 13:56:24 +0300 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-01 13:56:24 +0300 |
commit | 418bf3ab6922f9014400757a4a3d2123f280b463 (patch) | |
tree | 93589ebfc2b9ef71b71afe9a45369d55127807eb /src/core | |
parent | 192190769db6faeafb32e951cf4db6e021ac833e (diff) |
Fix R* optimization that prevents peds to spawn
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Game.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/Game.cpp b/src/core/Game.cpp index bdee936f..3a8cdb06 100644 --- a/src/core/Game.cpp +++ b/src/core/Game.cpp @@ -903,7 +903,13 @@ void CGame::Process(void) CEventList::Update(); CParticle::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) { +#endif CPopulation::Update(false); } else { uint32 startTime = CTimer::GetCurrentTimeInCycles() / CTimer::GetCyclesPerMillisecond(); |