mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:00:44 +02:00
add parameter for Dump Voxels on Move
This commit is contained in:
parent
a234deeb15
commit
299696e7a4
1 changed files with 10 additions and 0 deletions
|
@ -67,6 +67,7 @@ bool displayVoxelStats = false;
|
||||||
bool debugVoxelReceiving = false;
|
bool debugVoxelReceiving = false;
|
||||||
bool sendEnvironments = true;
|
bool sendEnvironments = true;
|
||||||
bool sendMinimalEnvironment = false;
|
bool sendMinimalEnvironment = false;
|
||||||
|
bool dumpVoxelsOnMove = false;
|
||||||
|
|
||||||
EnvironmentData environmentData[3];
|
EnvironmentData environmentData[3];
|
||||||
|
|
||||||
|
@ -237,6 +238,9 @@ void deepestLevelVoxelDistributor(NodeList* nodeList,
|
||||||
|
|
||||||
// if our view has changed, we need to reset these things...
|
// if our view has changed, we need to reset these things...
|
||||||
if (viewFrustumChanged) {
|
if (viewFrustumChanged) {
|
||||||
|
if (::dumpVoxelsOnMove) {
|
||||||
|
nodeData->nodeBag.deleteAll();
|
||||||
|
}
|
||||||
nodeData->map.erase();
|
nodeData->map.erase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -482,6 +486,12 @@ int main(int argc, const char * argv[]) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// should we send environments? Default is yes, but this command line suppresses sending
|
||||||
|
const char* DUMP_VOXELS_ON_MOVE = "--dumpVoxelsOnMove";
|
||||||
|
::dumpVoxelsOnMove = cmdOptionExists(argc, argv, DUMP_VOXELS_ON_MOVE);
|
||||||
|
printf("dumpVoxelsOnMove=%s\n", debug::valueOf(::dumpVoxelsOnMove));
|
||||||
|
|
||||||
// should we send environments? Default is yes, but this command line suppresses sending
|
// should we send environments? Default is yes, but this command line suppresses sending
|
||||||
const char* DONT_SEND_ENVIRONMENTS = "--dontSendEnvironments";
|
const char* DONT_SEND_ENVIRONMENTS = "--dontSendEnvironments";
|
||||||
bool dontSendEnvironments = cmdOptionExists(argc, argv, DONT_SEND_ENVIRONMENTS);
|
bool dontSendEnvironments = cmdOptionExists(argc, argv, DONT_SEND_ENVIRONMENTS);
|
||||||
|
|
Loading…
Reference in a new issue