History

work on debugging stutter behavior, mostly debugging and cleanup

ZappoMan committed 13 years ago

Commit c18de721 parent 0fe09aa5 files · +236 −68Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+3−2
@@ -1882,7 +1882,7 @@ void VoxelSystem::hideOutOfView(bool forceFullFrustum) { · 1881 unmodified lines
18821882 _inhideOutOfView = true;
18831883
18841884 bool showDebugDetails = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings);
1885− PerformanceWarning warn(showDebugDetails, "hideOutOfView()", showDebugDetails);
1885+ PerformanceWarning warn(showDebugDetails, "hideOutOfView()");
18861886 bool widenFrustum = true;
18871887
18881888 // When using "delta" view frustums and only hide/show items that are in the difference
@@ -1927,7 +1927,8 @@ void VoxelSystem::hideOutOfView(bool forceFullFrustum) { · 38 unmodified lines
19271927 setupNewVoxelsForDrawingSingleNode(DONT_BAIL_EARLY);
19281928 }
19291929
1930− if (showDebugDetails) {
1930+ bool extraDebugDetails = Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging);
1931+ if (extraDebugDetails) {
19311932 qDebug("hideOutOfView() scanned=%ld removed=%ld inside=%ld intersect=%ld outside=%ld\n",
19321933 args.nodesScanned, args.nodesRemoved, args.nodesInside,
19331934 args.nodesIntersect, args.nodesOutside