diff options
author | aap <aap@papnet.eu> | 2021-01-03 17:01:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-03 17:01:17 +0100 |
commit | 65796459343a01ddd17170104599ae340b90bb1d (patch) | |
tree | d16a5bc09e9cebd006085f30a27dfb3567927ee7 /src/core/Streaming.cpp | |
parent | Merge pull request #921 from TheOfficialFloW/patch-2 (diff) | |
parent | Pad2 fix (diff) | |
download | re3-65796459343a01ddd17170104599ae340b90bb1d.tar re3-65796459343a01ddd17170104599ae340b90bb1d.tar.gz re3-65796459343a01ddd17170104599ae340b90bb1d.tar.bz2 re3-65796459343a01ddd17170104599ae340b90bb1d.tar.lz re3-65796459343a01ddd17170104599ae340b90bb1d.tar.xz re3-65796459343a01ddd17170104599ae340b90bb1d.tar.zst re3-65796459343a01ddd17170104599ae340b90bb1d.zip |
Diffstat (limited to 'src/core/Streaming.cpp')
-rw-r--r-- | src/core/Streaming.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp index 2fd8bf1c..77789aaf 100644 --- a/src/core/Streaming.cpp +++ b/src/core/Streaming.cpp @@ -36,6 +36,7 @@ #include "MemoryHeap.h" #include "Font.h" #include "Frontend.h" +#include "VarConsole.h" //--MIAMI: file done (possibly bugs) @@ -82,6 +83,12 @@ CEntity *pIslandLODbeachEntity; int32 islandLODmainland; int32 islandLODbeach; +#ifndef MASTER +bool gbPrintStats; +bool gbPrintVehiclesInMemory; // TODO +bool gbPrintStreamingBuffer; // TODO +#endif + bool CStreamingInfo::GetCdPosnAndSize(uint32 &posn, uint32 &size) { @@ -237,8 +244,14 @@ CStreaming::Init2(void) pIslandLODbeachEntity = nil; islandLODmainland = -1; islandLODbeach = -1; - CModelInfo::GetModelInfo("IslandLODmainland", &islandLODmainland); - CModelInfo::GetModelInfo("IslandLODbeach", &islandLODbeach); + CModelInfo::GetModelInfo("IslandLODmainland", &islandLODmainland); + CModelInfo::GetModelInfo("IslandLODbeach", &islandLODbeach); + +#ifndef MASTER + VarConsole.Add("Streaming Debug", &gbPrintStats, true); + VarConsole.Add("Streaming Vehicle Debug", &gbPrintVehiclesInMemory, true); + VarConsole.Add("Printf Streaming Buffer contents", &gbPrintStreamingBuffer, true); +#endif } void |