add debug to catch AvatarMixer ghosting

This commit is contained in:
Stephen Birarda 2013-10-29 15:21:55 -07:00
parent 94728d0afb
commit 08a368a9fd

View file

@ -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);