History

get client working in refactored mode

ZappoMan committed 12 years ago

Commit 188d52c1 parent 4e18eaa6 files · +46 −37Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+2−6
@@ -128,8 +128,6 @@ void VoxelSystem::elementDeleted(OctreeElement* element) { · 127 unmodified lines
128128
129129 void VoxelSystem::setDisableFastVoxelPipeline(bool disableFastVoxelPipeline) {
130130 _useFastVoxelPipeline = !disableFastVoxelPipeline;
131− printf("setDisableFastVoxelPipeline() disableFastVoxelPipeline=%s _useFastVoxelPipeline=%s\n",
132− debug::valueOf(disableFastVoxelPipeline), debug::valueOf(_useFastVoxelPipeline));
133131 setupNewVoxelsForDrawing();
134132 }
135133
@@ -565,7 +563,6 @@ bool VoxelSystem::readFromSchematicFile(const char* filename) { · 429 unmodified lines
565563 }
566564
567565 int VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) {
568−
569566 unsigned char command = *sourceBuffer;
570567 int numBytesPacketHeader = numBytesForPacketHeader(sourceBuffer);
571568 switch(command) {
@@ -645,6 +642,8 @@ int VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) { · 73 unmodified lines
645642 }
646643
647644 void VoxelSystem::setupNewVoxelsForDrawing() {
645+
646+
648647 PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings),
649648 "setupNewVoxelsForDrawing()");
650649
@@ -709,7 +708,6 @@ void VoxelSystem::setupNewVoxelsForDrawing() { · 58 unmodified lines
709708 }
710709
711710 void VoxelSystem::setupNewVoxelsForDrawingSingleNode(bool allowBailEarly) {
712−
713711 PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings),
714712 "setupNewVoxelsForDrawingSingleNode() xxxxx");
715713
@@ -849,7 +847,6 @@ void VoxelSystem::cleanupRemovedVoxels() { · 133 unmodified lines
849847
850848 void VoxelSystem::copyWrittenDataToReadArraysFullVBOs() {
851849 copyWrittenDataSegmentToReadArrays(0, _voxelsInWriteArrays - 1);
852−
853850 _voxelsInReadArrays = _voxelsInWriteArrays;
854851
855852 // clear our dirty flags
@@ -1945,7 +1942,6 @@ void VoxelSystem::hideOutOfView(bool forceFullFrustum) { · 1089 unmodified lines
19451942 }
19461943
19471944 if (!forceFullFrustum && _culledOnce && args.lastViewFrustum.isVerySimilar(args.thisViewFrustum)) {
1948− //printf("view frustum hasn't changed BAIL!!!\n");
19491945 _inhideOutOfView = false;
19501946 return;
19511947 }