mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:56:55 +02:00
CR
This commit is contained in:
parent
2e8a6e1961
commit
a8d6a4e0b6
1 changed files with 2 additions and 2 deletions
|
@ -416,7 +416,7 @@ int OctreeSendThread::packetDistributor(SharedNodePointer node, OctreeQueryNode*
|
||||||
int elapsedmsec = (end - start) / USECS_PER_MSEC;
|
int elapsedmsec = (end - start) / USECS_PER_MSEC;
|
||||||
OctreeServer::trackLoopTime(elapsedmsec);
|
OctreeServer::trackLoopTime(elapsedmsec);
|
||||||
|
|
||||||
// if after sending packets we've emptied our bag, then we want to remember that we've sent all
|
// if we've sent everything, then we want to remember that we've sent all
|
||||||
// the octree elements from the current view frustum
|
// the octree elements from the current view frustum
|
||||||
if (!hasSomethingToSend(nodeData)) {
|
if (!hasSomethingToSend(nodeData)) {
|
||||||
nodeData->setViewSent(true);
|
nodeData->setViewSent(true);
|
||||||
|
@ -465,7 +465,7 @@ void OctreeSendThread::traverseTreeAndSendContents(SharedNodePointer node, Octre
|
||||||
extraPackingAttempts++;
|
extraPackingAttempts++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the bag had contents but is now empty then we know we've sent the entire scene.
|
// If we had something to send, but now we don't, then we know we've sent the entire scene.
|
||||||
bool completedScene = hadSomething;
|
bool completedScene = hadSomething;
|
||||||
if (completedScene || lastNodeDidntFit) {
|
if (completedScene || lastNodeDidntFit) {
|
||||||
// we probably want to flush what has accumulated in nodeData but:
|
// we probably want to flush what has accumulated in nodeData but:
|
||||||
|
|
Loading…
Reference in a new issue