mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:13:05 +02:00
Move timing at the top
This commit is contained in:
parent
0bc914bf19
commit
c3e2d920ee
1 changed files with 4 additions and 4 deletions
|
@ -421,14 +421,14 @@ int OctreeSendThread::packetDistributor(OctreeQueryNode* nodeData, bool viewFrus
|
||||||
|
|
||||||
quint64 lockWaitStart = usecTimestampNow();
|
quint64 lockWaitStart = usecTimestampNow();
|
||||||
_myServer->getOctree()->withReadLock([&]{
|
_myServer->getOctree()->withReadLock([&]{
|
||||||
|
quint64 lockWaitEnd = usecTimestampNow();
|
||||||
|
lockWaitElapsedUsec = (float)(lockWaitEnd - lockWaitStart);
|
||||||
|
quint64 encodeStart = usecTimestampNow();
|
||||||
|
|
||||||
OctreeElementPointer subTree = nodeData->elementBag.extract();
|
OctreeElementPointer subTree = nodeData->elementBag.extract();
|
||||||
if (!subTree) {
|
if (!subTree) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
quint64 lockWaitEnd = usecTimestampNow();
|
|
||||||
lockWaitElapsedUsec = (float)(lockWaitEnd - lockWaitStart);
|
|
||||||
quint64 encodeStart = usecTimestampNow();
|
|
||||||
|
|
||||||
/* TODO: Looking for a way to prevent locking and encoding a tree that is not
|
/* TODO: Looking for a way to prevent locking and encoding a tree that is not
|
||||||
// going to result in any packets being sent...
|
// going to result in any packets being sent...
|
||||||
|
|
Loading…
Reference in a new issue