Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -56,6 +56,8 @@ · 55 unmodified lines | ||
| 56 | 56 | #include <PairingHandler.h> |
| 57 | 57 | #include <PerfStat.h> |
| 58 | 58 | |
| 59 | +#include <VoxelSceneStats.h> | |
| 60 | + | |
| 59 | 61 | #include "Application.h" |
| 60 | 62 | #include "InterfaceConfig.h" |
| 61 | 63 | #include "LogDisplay.h" |
| @@ -3337,6 +3339,12 @@ void* Application::networkReceive(void* args) { · 3275 unmodified lines | ||
| 3337 | 3339 | if (packetVersionMatch(app->_incomingPacket)) { |
| 3338 | 3340 | // only process this packet if we have a match on the packet version |
| 3339 | 3341 | switch (app->_incomingPacket[0]) { |
| 3342 | + case PACKET_TYPE_VOXEL_STATS:{ | |
| 3343 | + VoxelSceneStats stats; | |
| 3344 | + int statsMessageLength = stats.unpackFromMessage(app->_incomingPacket, bytesReceived); | |
| 3345 | + stats.printDebugDetails(); | |
| 3346 | + break; | |
| 3347 | + } | |
| 3340 | 3348 | case PACKET_TYPE_TRANSMITTER_DATA_V2: |
| 3341 | 3349 | // V2 = IOS transmitter app |
| 3342 | 3350 | app->_myTransmitter.processIncomingData(app->_incomingPacket, bytesReceived); |