History

more work on voxelEctomy

ZappoMan committed 11 years ago

Commit 49d8f2b1 parent 141e23113 files · +5 −81Browse files

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

Unified · Split

interface/src/DatagramProcessor.cpp+2−18
@@ -81,31 +81,15 @@ void DatagramProcessor::processDatagrams() { · 80 unmodified lines
8181 break;
8282 case PacketTypeEntityData:
8383 case PacketTypeEntityErase:
84− case PacketTypeVoxelData:
85− case PacketTypeVoxelErase:
8684 case PacketTypeOctreeStats:
8785 case PacketTypeEnvironmentData: {
8886 PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings),
8987 "Application::networkReceive()... _octreeProcessor.queueReceivedPacket()");
90− bool wantExtraDebugging = application->getLogger()->extraDebugging();
91− if (wantExtraDebugging && packetTypeForPacket(incomingPacket) == PacketTypeVoxelData) {
92− int numBytesPacketHeader = numBytesForPacketHeader(incomingPacket);
93− unsigned char* dataAt = reinterpret_cast<unsigned char*>(incomingPacket.data()) + numBytesPacketHeader;
94− dataAt += sizeof(OCTREE_PACKET_FLAGS);
95− OCTREE_PACKET_SEQUENCE sequence = (*(OCTREE_PACKET_SEQUENCE*)dataAt);
96− dataAt += sizeof(OCTREE_PACKET_SEQUENCE);
97− OCTREE_PACKET_SENT_TIME sentAt = (*(OCTREE_PACKET_SENT_TIME*)dataAt);
98− dataAt += sizeof(OCTREE_PACKET_SENT_TIME);
99− OCTREE_PACKET_SENT_TIME arrivedAt = usecTimestampNow();
100− int flightTime = arrivedAt - sentAt;
101−
102− qDebug("got an Octree data or erase message, sequence:%d flightTime:%d", sequence, flightTime);
103− }
104−
88+
10589 SharedNodePointer matchedNode = NodeList::getInstance()->sendingNodeForPacket(incomingPacket);
10690
10791 if (matchedNode) {
108− // add this packet to our list of voxel packets and process them on the voxel processing
92+ // add this packet to our list of octree packets and process them on the octree data processing
10993 application->_octreeProcessor.queueReceivedPacket(matchedNode, incomingPacket);
11094 }
11195

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t