This commit is contained in:
ZappoMan 2014-04-01 10:58:20 -07:00
parent 9d757434ab
commit 193e237285
2 changed files with 7 additions and 2 deletions

View file

@ -81,10 +81,8 @@ bool OctreeSendThread::process() {
// Sometimes the node data has not yet been linked, in which case we can't really do anything
if (nodeData && !nodeData->isShuttingDown()) {
/*
bool viewFrustumChanged = nodeData->updateCurrentViewFrustum();
packetDistributor(nodeData, viewFrustumChanged);
*/
}
}
}

View file

@ -1184,6 +1184,11 @@ QString OctreeServer::getStatusLink() {
}
void OctreeServer::sendStatsPacket() {
static QJsonObject statsObject1;
ThreadedAssignment::addPacketStatsAndSendStatsPacket(statsObject1);
/**
// TODO: we have too many stats to fit in a single MTU... so for now, we break it into multiple JSON objects and
// send them separately. What we really should do is change the NodeList::sendStatsToDomainServer() to handle the
// the following features:
@ -1257,6 +1262,8 @@ void OctreeServer::sendStatsPacket() {
(double)_octreeInboundPacketProcessor->getAverageLockWaitTimePerElement();
NodeList::getInstance()->sendStatsToDomainServer(statsObject3);
**/
}
QMap<OctreeSendThread*, quint64> OctreeServer::_threadsDidProcess;