mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Add avatar identity requests to analytics
This commit is contained in:
parent
269d803812
commit
0dca842102
2 changed files with 3 additions and 0 deletions
|
@ -2114,6 +2114,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
|||
|| ((rightHandPose.valid || lastRightHandPose.valid) && (rightHandPose != lastRightHandPose));
|
||||
lastLeftHandPose = leftHandPose;
|
||||
lastRightHandPose = rightHandPose;
|
||||
properties["avatar_identity_requests_sent"] = DependencyManager::get<AvatarManager>()->getIdentityRequestsSent();
|
||||
|
||||
UserActivityLogger::getInstance().logAction("stats", properties);
|
||||
});
|
||||
|
|
|
@ -158,6 +158,7 @@ public:
|
|||
Q_INVOKABLE void setAvatarSortCoefficient(const QString& name, const QScriptValue& value);
|
||||
|
||||
float getMyAvatarSendRate() const { return _myAvatarSendRate.rate(); }
|
||||
int getIdentityRequestsSent() const { return _identityRequestsSent; }
|
||||
|
||||
public slots:
|
||||
|
||||
|
@ -195,6 +196,7 @@ private:
|
|||
int _numAvatarsNotUpdated { 0 };
|
||||
float _avatarSimulationTime { 0.0f };
|
||||
bool _shouldRender { true };
|
||||
int _identityRequestsSent { 0 };
|
||||
|
||||
static const quint64 REQUEST_UNKNOWN_IDENTITY_DELAY;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue