mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-24 03:10:00 +00:00
removed cullzones stuff from renderer
This commit is contained in:
parent
bf90fed2b7
commit
17efc38e35
|
@ -655,8 +655,6 @@ extern bool gbRenderWorld2;
|
||||||
DebugMenuAddCmd("Debug", "Parse Heap", ParseHeap);
|
DebugMenuAddCmd("Debug", "Parse Heap", ParseHeap);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
DebugMenuAddVarBool8("Debug", "Show cullzone debug stuff", &gbShowCullZoneDebugStuff, nil);
|
|
||||||
DebugMenuAddVarBool8("Debug", "Disable zone cull", &gbDisableZoneCull, nil);
|
|
||||||
|
|
||||||
DebugMenuAddVarBool8("Debug", "pad 1 -> pad 2", &CPad::m_bMapPadOneToPadTwo, nil);
|
DebugMenuAddVarBool8("Debug", "pad 1 -> pad 2", &CPad::m_bMapPadOneToPadTwo, nil);
|
||||||
#ifdef GTA_SCENE_EDIT
|
#ifdef GTA_SCENE_EDIT
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
#include "Occlusion.h"
|
#include "Occlusion.h"
|
||||||
#include "Renderer.h"
|
#include "Renderer.h"
|
||||||
#include "custompipes.h"
|
#include "custompipes.h"
|
||||||
#include "Debug.h"
|
|
||||||
|
|
||||||
//--MIAMI: file done
|
//--MIAMI: file done
|
||||||
|
|
||||||
|
@ -32,8 +31,6 @@ bool gbShowPedRoadGroups;
|
||||||
bool gbShowCarRoadGroups;
|
bool gbShowCarRoadGroups;
|
||||||
bool gbShowCollisionPolys;
|
bool gbShowCollisionPolys;
|
||||||
bool gbShowCollisionLines;
|
bool gbShowCollisionLines;
|
||||||
bool gbShowCullZoneDebugStuff;
|
|
||||||
bool gbDisableZoneCull; // not original
|
|
||||||
bool gbBigWhiteDebugLightSwitchedOn;
|
bool gbBigWhiteDebugLightSwitchedOn;
|
||||||
|
|
||||||
bool gbDontRenderBuildings;
|
bool gbDontRenderBuildings;
|
||||||
|
@ -42,21 +39,6 @@ bool gbDontRenderPeds;
|
||||||
bool gbDontRenderObjects;
|
bool gbDontRenderObjects;
|
||||||
bool gbDontRenderVehicles;
|
bool gbDontRenderVehicles;
|
||||||
|
|
||||||
int32 EntitiesRendered;
|
|
||||||
int32 EntitiesNotRendered;
|
|
||||||
int32 RenderedBigBuildings;
|
|
||||||
int32 RenderedBuildings;
|
|
||||||
int32 RenderedCars;
|
|
||||||
int32 RenderedPeds;
|
|
||||||
int32 RenderedObjects;
|
|
||||||
int32 RenderedDummies;
|
|
||||||
int32 TestedBigBuildings;
|
|
||||||
int32 TestedBuildings;
|
|
||||||
int32 TestedCars;
|
|
||||||
int32 TestedPeds;
|
|
||||||
int32 TestedObjects;
|
|
||||||
int32 TestedDummies;
|
|
||||||
|
|
||||||
// unused
|
// unused
|
||||||
int16 TestCloseThings;
|
int16 TestCloseThings;
|
||||||
int16 TestBigThings;
|
int16 TestBigThings;
|
||||||
|
@ -1308,24 +1290,6 @@ CRenderer::ScanWorld(void)
|
||||||
RwMatrix *cammatrix;
|
RwMatrix *cammatrix;
|
||||||
RwV2d poly[3];
|
RwV2d poly[3];
|
||||||
|
|
||||||
#ifndef MASTER
|
|
||||||
// missing in game but has to be done somewhere
|
|
||||||
EntitiesRendered = 0;
|
|
||||||
EntitiesNotRendered = 0;
|
|
||||||
RenderedBigBuildings = 0;
|
|
||||||
RenderedBuildings = 0;
|
|
||||||
RenderedCars = 0;
|
|
||||||
RenderedPeds = 0;
|
|
||||||
RenderedObjects = 0;
|
|
||||||
RenderedDummies = 0;
|
|
||||||
TestedBigBuildings = 0;
|
|
||||||
TestedBuildings = 0;
|
|
||||||
TestedCars = 0;
|
|
||||||
TestedPeds = 0;
|
|
||||||
TestedObjects = 0;
|
|
||||||
TestedDummies = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
memset(vectors, 0, sizeof(vectors));
|
memset(vectors, 0, sizeof(vectors));
|
||||||
vectors[CORNER_FAR_TOPLEFT].x = -vw.x * f;
|
vectors[CORNER_FAR_TOPLEFT].x = -vw.x * f;
|
||||||
vectors[CORNER_FAR_TOPLEFT].y = vw.y * f;
|
vectors[CORNER_FAR_TOPLEFT].y = vw.y * f;
|
||||||
|
@ -1445,19 +1409,6 @@ CRenderer::ScanWorld(void)
|
||||||
ScanBigBuildingList(CWorld::GetBigBuildingList(LEVEL_GENERIC));
|
ScanBigBuildingList(CWorld::GetBigBuildingList(LEVEL_GENERIC));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef MASTER
|
|
||||||
if(gbShowCullZoneDebugStuff){
|
|
||||||
sprintf(gString, "Rejected: %d/%d.", EntitiesNotRendered, EntitiesNotRendered + EntitiesRendered);
|
|
||||||
CDebug::PrintAt(gString, 10, 10);
|
|
||||||
sprintf(gString, "Tested:BBuild:%d Build:%d Peds:%d Cars:%d Obj:%d Dummies:%d",
|
|
||||||
TestedBigBuildings, TestedBuildings, TestedPeds, TestedCars, TestedObjects, TestedDummies);
|
|
||||||
CDebug::PrintAt(gString, 10, 11);
|
|
||||||
sprintf(gString, "Rendered:BBuild:%d Build:%d Peds:%d Cars:%d Obj:%d Dummies:%d",
|
|
||||||
RenderedBigBuildings, RenderedBuildings, RenderedPeds, RenderedCars, RenderedObjects, RenderedDummies);
|
|
||||||
CDebug::PrintAt(gString, 10, 12);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -14,8 +14,6 @@ extern bool gbShowPedRoadGroups;
|
||||||
extern bool gbShowCarRoadGroups;
|
extern bool gbShowCarRoadGroups;
|
||||||
extern bool gbShowCollisionPolys;
|
extern bool gbShowCollisionPolys;
|
||||||
extern bool gbShowCollisionLines;
|
extern bool gbShowCollisionLines;
|
||||||
extern bool gbShowCullZoneDebugStuff;
|
|
||||||
extern bool gbDisableZoneCull; // not original
|
|
||||||
extern bool gbBigWhiteDebugLightSwitchedOn;
|
extern bool gbBigWhiteDebugLightSwitchedOn;
|
||||||
|
|
||||||
extern bool gbDontRenderBuildings;
|
extern bool gbDontRenderBuildings;
|
||||||
|
|
Loading…
Reference in a new issue