History

send voxel scene stats from server to client

ZappoMan committed 13 years ago

Commit d9c8a591 parent b97ef2a5 files · +168 −0Browse files

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

Unified · Split

interface/src/Application.cpp+8−0
@@ -56,6 +56,8 @@ · 55 unmodified lines
5656 #include <PairingHandler.h>
5757 #include <PerfStat.h>
5858
59+#include <VoxelSceneStats.h>
60+
5961 #include "Application.h"
6062 #include "InterfaceConfig.h"
6163 #include "LogDisplay.h"
@@ -3337,6 +3339,12 @@ void* Application::networkReceive(void* args) { · 3275 unmodified lines
33373339 if (packetVersionMatch(app->_incomingPacket)) {
33383340 // only process this packet if we have a match on the packet version
33393341 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+ }
33403348 case PACKET_TYPE_TRANSMITTER_DATA_V2:
33413349 // V2 = IOS transmitter app
33423350 app->_myTransmitter.processIncomingData(app->_incomingPacket, bytesReceived);

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