print some metrics after voxel send to client

This commit is contained in:
Stephen Birarda 2013-03-22 16:20:27 -07:00
parent c40800db8b
commit c08b7acac5

View file

@ -217,6 +217,7 @@ int main(int argc, const char * argv[])
stopOctal = randomTree.rootNode->octalCode;
packetCount = 0;
totalBytesSent = 0;
randomTree.leavesWrittenToBitstream = 0;
while (stopOctal != NULL) {
voxelPacketEnd = voxelPacket;
@ -233,6 +234,11 @@ int main(int argc, const char * argv[])
totalBytesSent += voxelPacketEnd - voxelPacket;
}
printf("%d packets sent to client totalling %d bytes\n", packetCount, totalBytesSent);
printf("%d leaves were sent - %f bpv\n",
randomTree.leavesWrittenToBitstream,
(float)totalBytesSent / randomTree.leavesWrittenToBitstream);
agentData->lastSentLevel = newLevel;
}
}