mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +02:00
add debug to catch AvatarMixer ghosting
This commit is contained in:
parent
94728d0afb
commit
08a368a9fd
1 changed files with 5 additions and 0 deletions
|
@ -772,14 +772,19 @@ void* removeSilentNodes(void *args) {
|
|||
checkTimeUsecs = usecTimestampNow();
|
||||
|
||||
for(NodeList::iterator node = nodeList->begin(); node != nodeList->end(); ++node) {
|
||||
qDebug() << "Locking node" << node->getUUID() << "\n";
|
||||
node->lock();
|
||||
|
||||
qDebug() << "N:" << usecTimestampNow() << "LH:" << node->getLastHeardMicrostamp() << "\n";
|
||||
qDebug() << "Diff:" << usecTimestampNow() - node->getLastHeardMicrostamp() << "\n";
|
||||
|
||||
if ((usecTimestampNow() - node->getLastHeardMicrostamp()) > NODE_SILENCE_THRESHOLD_USECS) {
|
||||
// kill this node, don't lock - we already did it
|
||||
nodeList->killNode(&(*node), false);
|
||||
}
|
||||
|
||||
node->unlock();
|
||||
qDebug() << "Unlocking node" << node->getUUID() << "\n";
|
||||
}
|
||||
|
||||
sleepTime = NODE_SILENCE_THRESHOLD_USECS - (usecTimestampNow() - checkTimeUsecs);
|
||||
|
|
Loading…
Reference in a new issue