mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:29:47 +02:00
make dontdumponmove default
This commit is contained in:
parent
6e7dc65d5f
commit
3a2b668424
1 changed files with 0 additions and 15 deletions
|
@ -66,7 +66,6 @@ bool shouldShowAnimationDebug = false;
|
||||||
bool displayVoxelStats = false;
|
bool displayVoxelStats = false;
|
||||||
bool debugVoxelReceiving = false;
|
bool debugVoxelReceiving = false;
|
||||||
bool sendEnvironments = true;
|
bool sendEnvironments = true;
|
||||||
bool dontDumpOnMove = false; // by default we dump on move
|
|
||||||
|
|
||||||
EnvironmentData environmentData[3];
|
EnvironmentData environmentData[3];
|
||||||
|
|
||||||
|
@ -237,10 +236,6 @@ 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 (!::dontDumpOnMove) {
|
|
||||||
printf("dumping nodeBag on move!\n");
|
|
||||||
nodeData->nodeBag.deleteAll();
|
|
||||||
}
|
|
||||||
nodeData->map.erase();
|
nodeData->map.erase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -261,7 +256,6 @@ void deepestLevelVoxelDistributor(NodeList* nodeList,
|
||||||
|
|
||||||
// If we're starting a full scene, then definitely we want to empty the nodeBag
|
// If we're starting a full scene, then definitely we want to empty the nodeBag
|
||||||
if (isFullScene) {
|
if (isFullScene) {
|
||||||
printf(">>> dumping nodeBag before fullscene!\n");
|
|
||||||
nodeData->nodeBag.deleteAll();
|
nodeData->nodeBag.deleteAll();
|
||||||
}
|
}
|
||||||
nodeData->stats.sceneStarted(isFullScene, viewFrustumChanged, ::serverTree.rootNode, ::jurisdiction);
|
nodeData->stats.sceneStarted(isFullScene, viewFrustumChanged, ::serverTree.rootNode, ::jurisdiction);
|
||||||
|
@ -486,15 +480,6 @@ int main(int argc, const char * argv[]) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// should we dump the voxels from the node bag on move? default to FALSE, we do dump
|
|
||||||
const char* DONT_DUMP_ON_MOVE = "--dontDumpOnMove";
|
|
||||||
::dontDumpOnMove = cmdOptionExists(argc, argv, DONT_DUMP_ON_MOVE);
|
|
||||||
if (::dontDumpOnMove) {
|
|
||||||
printf("dontDumpOnMove=TRUE we will not empty the node bag when clients move\n");
|
|
||||||
} else {
|
|
||||||
printf("dontDumpOnMove=FALSE [default!] we will empty the node bag when clients move\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 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