mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:47:11 +02:00
remove keep-alive packet from avatar-mixer
This commit is contained in:
parent
7840377109
commit
75c2776836
1 changed files with 3 additions and 11 deletions
|
@ -263,16 +263,8 @@ void AvatarMixerSlave::broadcastAvatarData(const SharedNodePointer& node) {
|
||||||
// make sure we haven't already sent this data from this sender to this receiver
|
// make sure we haven't already sent this data from this sender to this receiver
|
||||||
// or that somehow we haven't sent
|
// or that somehow we haven't sent
|
||||||
if (lastSeqToReceiver == lastSeqFromSender && lastSeqToReceiver != 0) {
|
if (lastSeqToReceiver == lastSeqFromSender && lastSeqToReceiver != 0) {
|
||||||
// don't ignore this avatar if we haven't sent any update for a long while
|
|
||||||
// in an effort to prevent other interfaces from deleting a stale avatar instance
|
|
||||||
uint64_t lastBroadcastTime = nodeData->getLastBroadcastTime(avatarNode->getUUID());
|
|
||||||
const AvatarMixerClientData* otherNodeData = reinterpret_cast<const AvatarMixerClientData*>(avatarNode->getLinkedData());
|
|
||||||
const uint64_t AVATAR_UPDATE_STALE = AVATAR_UPDATE_TIMEOUT - USECS_PER_SECOND;
|
|
||||||
if (lastBroadcastTime > otherNodeData->getIdentityChangeTimestamp() &&
|
|
||||||
lastBroadcastTime + AVATAR_UPDATE_STALE > startIgnoreCalculation) {
|
|
||||||
++numAvatarsHeldBack;
|
++numAvatarsHeldBack;
|
||||||
shouldIgnore = true;
|
shouldIgnore = true;
|
||||||
}
|
|
||||||
} else if (lastSeqFromSender - lastSeqToReceiver > 1) {
|
} else if (lastSeqFromSender - lastSeqToReceiver > 1) {
|
||||||
// this is a skip - we still send the packet but capture the presence of the skip so we see it happening
|
// this is a skip - we still send the packet but capture the presence of the skip so we see it happening
|
||||||
++numAvatarsWithSkippedFrames;
|
++numAvatarsWithSkippedFrames;
|
||||||
|
|
Loading…
Reference in a new issue