- added abstract logger interface
Showing the changes to interface/src/VoxelSystem.cpp (1 of 13 files). Show all
Unified · Split
| @@ -612,7 +612,7 @@ int VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) { · 611 unmodified lines | ||
| 612 | 612 | lockTree(); |
| 613 | 613 | VoxelPacketData packetData(packetIsCompressed); |
| 614 | 614 | packetData.loadFinalizedContent(dataAt, sectionLength); |
| 615 | − if (Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging)) { | |
| 615 | + if (Application::getInstance()->getLogger()->extraDebugging()) { | |
| 616 | 616 | qDebug("VoxelSystem::parseData() ... Got Packet Section" |
| 617 | 617 | " color:%s compressed:%s sequence: %u flight:%d usec size:%d data:%d" |
| 618 | 618 | " subsection:%d sectionLength:%d uncompressed:%d\n", |
| @@ -973,7 +973,7 @@ int VoxelSystem::updateNodeInArrays(VoxelTreeElement* node, bool reuseIndex, boo · 354 unmodified lines | ||
| 973 | 973 | // not render these Voxels. We need to think about ways to keep the entire scene intact but maybe lower quality |
| 974 | 974 | // possibly shifting down to lower LOD or something. This debug message is to help identify, if/when/how this |
| 975 | 975 | // state actually occurs. |
| 976 | − if (Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging)) { | |
| 976 | + if (Application::getInstance()->getLogger()->extraDebugging()) { | |
| 977 | 977 | qDebug("OHHHH NOOOOOO!!!! updateNodeInArrays() BAILING (_voxelsInWriteArrays >= _maxVoxels)\n"); |
| 978 | 978 | } |
| 979 | 979 | return 0; |
| @@ -1964,7 +1964,7 @@ void VoxelSystem::hideOutOfView(bool forceFullFrustum) { · 984 unmodified lines | ||
| 1964 | 1964 | setupNewVoxelsForDrawingSingleNode(DONT_BAIL_EARLY); |
| 1965 | 1965 | } |
| 1966 | 1966 | |
| 1967 | − bool extraDebugDetails = Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging); | |
| 1967 | + bool extraDebugDetails = Application::getInstance()->getLogger()->extraDebugging(); | |
| 1968 | 1968 | if (extraDebugDetails) { |
| 1969 | 1969 | qDebug("hideOutOfView() scanned=%ld removed=%ld inside=%ld intersect=%ld outside=%ld\n", |
| 1970 | 1970 | args.nodesScanned, args.nodesRemoved, args.nodesInside, |