mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 14:21:10 +02:00
get rid of _avatarEntityChangedTime
This commit is contained in:
parent
de4c9530c9
commit
1e849956c9
2 changed files with 1 additions and 5 deletions
|
@ -183,10 +183,8 @@ void Avatar::updateAvatarEntities() {
|
||||||
// - setAvatarEntityData saves the bytes and sets _avatarEntityDataChanged = true
|
// - setAvatarEntityData saves the bytes and sets _avatarEntityDataChanged = true
|
||||||
// - (My)Avatar::simulate notices _avatarEntityDataChanged and here we are...
|
// - (My)Avatar::simulate notices _avatarEntityDataChanged and here we are...
|
||||||
|
|
||||||
quint64 now = usecTimestampNow();
|
|
||||||
|
|
||||||
const static quint64 refreshTime = 3 * USECS_PER_SECOND;
|
const static quint64 refreshTime = 3 * USECS_PER_SECOND;
|
||||||
if (!_avatarEntityDataChanged && now - _avatarEntityChangedTime < refreshTime) {
|
if (!_avatarEntityDataChanged) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -247,7 +245,6 @@ void Avatar::updateAvatarEntities() {
|
||||||
|
|
||||||
if (success) {
|
if (success) {
|
||||||
setAvatarEntityDataChanged(false);
|
setAvatarEntityDataChanged(false);
|
||||||
_avatarEntityChangedTime = now;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -423,7 +423,6 @@ protected:
|
||||||
AvatarEntityMap _avatarEntityData;
|
AvatarEntityMap _avatarEntityData;
|
||||||
bool _avatarEntityDataLocallyEdited { false };
|
bool _avatarEntityDataLocallyEdited { false };
|
||||||
bool _avatarEntityDataChanged { false };
|
bool _avatarEntityDataChanged { false };
|
||||||
quint64 _avatarEntityChangedTime { 0 };
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend void avatarStateFromFrame(const QByteArray& frameData, AvatarData* _avatar);
|
friend void avatarStateFromFrame(const QByteArray& frameData, AvatarData* _avatar);
|
||||||
|
|
Loading…
Reference in a new issue