mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 06:19:49 +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;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue