From 3a2b6684244eed9fbf18ba5d023e7b2e66dd5263 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Thu, 8 Aug 2013 15:04:23 -0700 Subject: [PATCH] make dontdumponmove default --- voxel-server/src/main.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/voxel-server/src/main.cpp b/voxel-server/src/main.cpp index 7b60c6354e..55f407872b 100644 --- a/voxel-server/src/main.cpp +++ b/voxel-server/src/main.cpp @@ -66,7 +66,6 @@ bool shouldShowAnimationDebug = false; bool displayVoxelStats = false; bool debugVoxelReceiving = false; bool sendEnvironments = true; -bool dontDumpOnMove = false; // by default we dump on move EnvironmentData environmentData[3]; @@ -237,10 +236,6 @@ void deepestLevelVoxelDistributor(NodeList* nodeList, // if our view has changed, we need to reset these things... if (viewFrustumChanged) { - if (!::dontDumpOnMove) { - printf("dumping nodeBag on move!\n"); - nodeData->nodeBag.deleteAll(); - } 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 (isFullScene) { - printf(">>> dumping nodeBag before fullscene!\n"); nodeData->nodeBag.deleteAll(); } 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 const char* DONT_SEND_ENVIRONMENTS = "--dontSendEnvironments"; bool dontSendEnvironments = cmdOptionExists(argc, argv, DONT_SEND_ENVIRONMENTS);