summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-06 09:24:18 +0200
committeraap <aap@papnet.eu>2020-05-06 09:24:18 +0200
commit8e84728f41aef0c01f0a7eaf2e074ee876712861 (patch)
tree85484924e37a3afb3c4524cb89f72672a9b86d88 /src/render
parentupdated librw (diff)
parentRemove audio from premake (diff)
downloadre3-8e84728f41aef0c01f0a7eaf2e074ee876712861.tar
re3-8e84728f41aef0c01f0a7eaf2e074ee876712861.tar.gz
re3-8e84728f41aef0c01f0a7eaf2e074ee876712861.tar.bz2
re3-8e84728f41aef0c01f0a7eaf2e074ee876712861.tar.lz
re3-8e84728f41aef0c01f0a7eaf2e074ee876712861.tar.xz
re3-8e84728f41aef0c01f0a7eaf2e074ee876712861.tar.zst
re3-8e84728f41aef0c01f0a7eaf2e074ee876712861.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Renderer.cpp12
-rw-r--r--src/render/Renderer.h2
2 files changed, 0 insertions, 14 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 107a4235..0c5e8fae 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -972,9 +972,7 @@ CRenderer::ScanSectorList(CPtrList *lists)
continue; // already seen
ent->m_scanCode = CWorld::GetCurrentScanCode();
-#ifdef GTA_ZONECULL
if(IsEntityCullZoneVisible(ent))
-#endif
switch(SetupEntityVisibility(ent)){
case VIS_VISIBLE:
ms_aVisibleEntityPtrs[ms_nNoOfVisibleEntities++] = ent;
@@ -997,14 +995,12 @@ CRenderer::ScanSectorList(CPtrList *lists)
CStreaming::RequestModel(ent->GetModelIndex(), 0);
break;
}
-#ifdef GTA_ZONECULL
else if(ent->IsBuilding() && ((CBuilding*)ent)->GetIsATreadable()){
if(!CStreaming::ms_disableStreaming)
if(SetupEntityVisibility(ent) == VIS_STREAMME)
if(!m_loadingPriority || CStreaming::ms_numModelsRequested < 10)
CStreaming::RequestModel(ent->GetModelIndex(), 0);
}
-#endif
}
}
}
@@ -1026,9 +1022,7 @@ CRenderer::ScanSectorList_Priority(CPtrList *lists)
continue; // already seen
ent->m_scanCode = CWorld::GetCurrentScanCode();
-#ifdef GTA_ZONECULL
if(IsEntityCullZoneVisible(ent))
-#endif
switch(SetupEntityVisibility(ent)){
case VIS_VISIBLE:
ms_aVisibleEntityPtrs[ms_nNoOfVisibleEntities++] = ent;
@@ -1053,13 +1047,11 @@ CRenderer::ScanSectorList_Priority(CPtrList *lists)
}
break;
}
-#ifdef GTA_ZONECULL
else if(ent->IsBuilding() && ((CBuilding*)ent)->GetIsATreadable()){
if(!CStreaming::ms_disableStreaming)
if(SetupEntityVisibility(ent) == VIS_STREAMME)
CStreaming::RequestModel(ent->GetModelIndex(), 0);
}
-#endif
}
}
}
@@ -1112,9 +1104,7 @@ CRenderer::ScanSectorList_RequestModels(CPtrList *lists)
if(ent->m_scanCode == CWorld::GetCurrentScanCode())
continue; // already seen
ent->m_scanCode = CWorld::GetCurrentScanCode();
-#ifdef GTA_ZONECULL
if(IsEntityCullZoneVisible(ent))
-#endif
if(ShouldModelBeStreamed(ent))
CStreaming::RequestModel(ent->GetModelIndex(), 0);
}
@@ -1160,7 +1150,6 @@ CRenderer::ShouldModelBeStreamed(CEntity *ent)
return dist - FADE_DISTANCE - STREAM_DISTANCE < mi->GetLargestLodDistance();
}
-#ifdef GTA_ZONECULL
bool
CRenderer::IsEntityCullZoneVisible(CEntity *ent)
{
@@ -1203,7 +1192,6 @@ CRenderer::IsVehicleCullZoneVisible(CEntity *ent)
return !(v->m_pCurGroundEntity && v->m_pCurGroundEntity->bZoneCulled2);
return true;
}
-#endif
void
CRenderer::RemoveVehiclePedLights(CEntity *ent, bool reset)
diff --git a/src/render/Renderer.h b/src/render/Renderer.h
index e28995c3..362741e3 100644
--- a/src/render/Renderer.h
+++ b/src/render/Renderer.h
@@ -64,10 +64,8 @@ public:
static void SortBIGBuildingsForSectorList(CPtrList *list);
static bool ShouldModelBeStreamed(CEntity *ent);
-#ifdef GTA_ZONECULL
static bool IsEntityCullZoneVisible(CEntity *ent);
static bool IsVehicleCullZoneVisible(CEntity *ent);
-#endif
static void RemoveVehiclePedLights(CEntity *ent, bool reset);
};