This commit is contained in:
Seth Alves 2015-04-29 15:34:31 -07:00
parent e985f56b12
commit 69766f6e59
2 changed files with 3 additions and 4 deletions

View file

@ -45,7 +45,6 @@ AvatarMixer::AvatarMixer(const QByteArray& packet) :
}
AvatarMixer::~AvatarMixer() {
qDebug() << "AvatarMixer::~AvatarMixer";
if (_broadcastTimer) {
_broadcastTimer->deleteLater();
}
@ -65,9 +64,9 @@ const float BILLBOARD_AND_IDENTITY_SEND_PROBABILITY = 1.0f / 300.0f;
// 1) use the view frustum to cull those avatars that are out of view. Since avatar data doesn't need to be present
// if the avatar is not in view or in the keyhole.
void AvatarMixer::broadcastAvatarData() {
int idleTime = QDateTime::currentMSecsSinceEpoch() - _lastFrameTimestamp;
++_numStatFrames;
const float STRUGGLE_TRIGGER_SLEEP_PERCENTAGE_THRESHOLD = 0.10f;

View file

@ -35,7 +35,7 @@ protected:
void setCustomDeleter(DeleterFunction customDeleter) { _customDeleter = customDeleter; }
DeleterFunction _customDeleter = [](Dependency* pointer) { delete pointer; };
friend class DependencyManager;
};