mirror of
https://github.com/halpz/re3.git
synced 2025-12-20 19:32:55 +00:00
Squeeze performance option, minor fixes
Fixes are already in miami
This commit is contained in:
@@ -1104,7 +1104,11 @@ CPopulation::ManagePopulation(void)
|
||||
}
|
||||
|
||||
int pedPoolSize = CPools::GetPedPool()->GetSize();
|
||||
#ifndef SQUEEZE_PERFORMANCE
|
||||
for (int poolIndex = pedPoolSize-1; poolIndex >= 0; poolIndex--) {
|
||||
#else
|
||||
for (int poolIndex = (pedPoolSize * (frameMod32 + 1) / 32) - 1; poolIndex >= pedPoolSize * frameMod32 / 32; poolIndex--) {
|
||||
#endif
|
||||
CPed *ped = CPools::GetPedPool()->GetSlot(poolIndex);
|
||||
|
||||
if (ped && !ped->IsPlayer() && ped->CanBeDeleted() && !ped->bInVehicle) {
|
||||
@@ -1117,6 +1121,13 @@ CPopulation::ManagePopulation(void)
|
||||
}
|
||||
|
||||
float dist = (ped->GetPosition() - playerPos).Magnitude2D();
|
||||
#ifdef SQUEEZE_PERFORMANCE
|
||||
if (dist > 50.f)
|
||||
ped->bUsesCollision = false;
|
||||
else
|
||||
ped->bUsesCollision = true;
|
||||
#endif
|
||||
|
||||
bool pedIsFarAway = false;
|
||||
if (PedCreationDistMultiplier() * (PED_REMOVE_DIST_SPECIAL * TheCamera.GenerationDistMultiplier) < dist
|
||||
|| (!ped->bCullExtraFarAway && PedCreationDistMultiplier() * PED_REMOVE_DIST * TheCamera.GenerationDistMultiplier < dist)
|
||||
|
||||
Reference in New Issue
Block a user