History

debug stats

ZappoMan committed 13 years ago

Commit 2d6e5221 parent 5ef2e2d3 files · +20 −14Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 3 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+14−11
@@ -1090,13 +1090,13 @@ void VoxelSystem::collectStatsForTreesAndVBOs() { · 1089 unmodified lines
10901090 args.expectedMax = _voxelsInWriteArrays;
10911091 _tree->recurseTreeWithOperation(collectStatsForTreesAndVBOsOperation,&args);
10921092
1093− printLog("_voxelsDirty=%s _voxelsInWriteArrays=%ld minDirty=%ld maxDirty=%ld \n", debug::valueOf(_voxelsDirty),
1094− _voxelsInWriteArrays, minDirty, maxDirty);
1095−
1096− printLog("stats: total %ld, leaves %ld, dirty %ld, colored %ld, shouldRender %ld, inVBO %ld\n",
1093+ printLog("Local Voxel Tree Statistics:\n total nodes %ld \n leaves %ld \n dirty %ld \n colored %ld \n shouldRender %ld \n",
10971094 args.totalNodes, args.leafNodes, args.dirtyNodes, args.coloredNodes, args.shouldRenderNodes);
10981095
1099− printLog("inVBO %ld, nodesInVBOOverExpectedMax %ld, duplicateVBOIndex %ld, nodesInVBONotShouldRender %ld\n",
1096+ printLog(" _voxelsDirty=%s \n _voxelsInWriteArrays=%ld \n minDirty=%ld \n maxDirty=%ld \n", debug::valueOf(_voxelsDirty),
1097+ _voxelsInWriteArrays, minDirty, maxDirty);
1098+
1099+ printLog(" inVBO %ld \n nodesInVBOOverExpectedMax %ld \n duplicateVBOIndex %ld \n nodesInVBONotShouldRender %ld \n",
11001100 args.nodesInVBO, args.nodesInVBOOverExpectedMax, args.duplicateVBOIndex, args.nodesInVBONotShouldRender);
11011101
11021102 glBufferIndex minInVBO = GLBUFFER_INDEX_UNKNOWN;
@@ -1109,7 +1109,7 @@ void VoxelSystem::collectStatsForTreesAndVBOs() { · 6 unmodified lines
11091109 }
11101110 }
11111111
1112− printLog("minInVBO=%ld maxInVBO=%ld _voxelsInWriteArrays=%ld _voxelsInReadArrays=%ld\n",
1112+ printLog(" minInVBO=%ld \n maxInVBO=%ld \n _voxelsInWriteArrays=%ld \n _voxelsInReadArrays=%ld \n",
11131113 minInVBO, maxInVBO, _voxelsInWriteArrays, _voxelsInReadArrays);
11141114
11151115 }
@@ -1289,19 +1289,21 @@ void VoxelSystem::falseColorizeOccluded() { · 173 unmodified lines
12891289
12901290 VoxelProjectedPolygon::pointInside_calls = 0;
12911291 VoxelProjectedPolygon::occludes_calls = 0;
1292+ VoxelProjectedPolygon::intersects_calls = 0;
12921293
12931294 glm::vec3 position = args.viewFrustum->getPosition() * (1.0f/TREE_SCALE);
12941295
12951296 _tree->recurseTreeWithOperationDistanceSorted(falseColorizeOccludedOperation, position, (void*)&args);
12961297
1297− printLog("falseColorizeOccluded()\n position=(%f,%f)\n total=%ld\n colored=%ld\n occluded=%ld\n notOccluded=%ld\n outOfView=%ld\n subtreeVoxelsSkipped=%ld\n stagedForDeletion=%ld\n nonLeaves=%ld\n nonLeavesOutOfView=%ld\n nonLeavesOccluded=%ld\n pointInside_calls=%ld\n occludes_calls=%ld\n",
1298+ printLog("falseColorizeOccluded()\n position=(%f,%f)\n total=%ld\n colored=%ld\n occluded=%ld\n notOccluded=%ld\n outOfView=%ld\n subtreeVoxelsSkipped=%ld\n stagedForDeletion=%ld\n nonLeaves=%ld\n nonLeavesOutOfView=%ld\n nonLeavesOccluded=%ld\n pointInside_calls=%ld\n occludes_calls=%ld\n intersects_calls=%ld\n",
12981299 position.x, position.y,
12991300 args.totalVoxels, args.coloredVoxels, args.occludedVoxels,
13001301 args.notOccludedVoxels, args.outOfView, args.subtreeVoxelsSkipped,
13011302 args.stagedForDeletion,
13021303 args.nonLeaves, args.nonLeavesOutOfView, args.nonLeavesOccluded,
13031304 VoxelProjectedPolygon::pointInside_calls,
1304− VoxelProjectedPolygon::occludes_calls
1305+ VoxelProjectedPolygon::occludes_calls,
1306+ VoxelProjectedPolygon::intersects_calls
13051307 );
13061308
13071309
@@ -1397,7 +1399,7 @@ void VoxelSystem::falseColorizeOccludedV2() { · 89 unmodified lines
13971399
13981400 VoxelProjectedPolygon::pointInside_calls = 0;
13991401 VoxelProjectedPolygon::occludes_calls = 0;
1400−
1402+ VoxelProjectedPolygon::intersects_calls = 0;
14011403
14021404 FalseColorizeOccludedArgs args;
14031405 args.viewFrustum = Application::getInstance()->getViewFrustum();
@@ -1418,14 +1420,15 @@ void VoxelSystem::falseColorizeOccludedV2() { · 14 unmodified lines
14181420
14191421 _tree->recurseTreeWithOperationDistanceSorted(falseColorizeOccludedV2Operation, position, (void*)&args);
14201422
1421− printLog("falseColorizeOccludedV2()\n position=(%f,%f)\n total=%ld\n colored=%ld\n occluded=%ld\n notOccluded=%ld\n outOfView=%ld\n subtreeVoxelsSkipped=%ld\n stagedForDeletion=%ld\n nonLeaves=%ld\n nonLeavesOutOfView=%ld\n nonLeavesOccluded=%ld\n pointInside_calls=%ld\n occludes_calls=%ld\n",
1423+ printLog("falseColorizeOccludedV2()\n position=(%f,%f)\n total=%ld\n colored=%ld\n occluded=%ld\n notOccluded=%ld\n outOfView=%ld\n subtreeVoxelsSkipped=%ld\n stagedForDeletion=%ld\n nonLeaves=%ld\n nonLeavesOutOfView=%ld\n nonLeavesOccluded=%ld\n pointInside_calls=%ld\n occludes_calls=%ld\n intersects_calls=%ld\n",
14221424 position.x, position.y,
14231425 args.totalVoxels, args.coloredVoxels, args.occludedVoxels,
14241426 args.notOccludedVoxels, args.outOfView, args.subtreeVoxelsSkipped,
14251427 args.stagedForDeletion,
14261428 args.nonLeaves, args.nonLeavesOutOfView, args.nonLeavesOccluded,
14271429 VoxelProjectedPolygon::pointInside_calls,
1428− VoxelProjectedPolygon::occludes_calls
1430+ VoxelProjectedPolygon::occludes_calls,
1431+ VoxelProjectedPolygon::intersects_calls
14291432 );
14301433 //myCoverageMapV2.erase();
14311434