mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:28:02 +02:00
print some metrics after voxel send to client
This commit is contained in:
parent
c40800db8b
commit
c08b7acac5
1 changed files with 6 additions and 0 deletions
|
@ -217,6 +217,7 @@ int main(int argc, const char * argv[])
|
||||||
stopOctal = randomTree.rootNode->octalCode;
|
stopOctal = randomTree.rootNode->octalCode;
|
||||||
packetCount = 0;
|
packetCount = 0;
|
||||||
totalBytesSent = 0;
|
totalBytesSent = 0;
|
||||||
|
randomTree.leavesWrittenToBitstream = 0;
|
||||||
|
|
||||||
while (stopOctal != NULL) {
|
while (stopOctal != NULL) {
|
||||||
voxelPacketEnd = voxelPacket;
|
voxelPacketEnd = voxelPacket;
|
||||||
|
@ -233,6 +234,11 @@ int main(int argc, const char * argv[])
|
||||||
totalBytesSent += voxelPacketEnd - voxelPacket;
|
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;
|
agentData->lastSentLevel = newLevel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue