mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
Tear down animGraph when turning off the avatar update thread. Otherwise, big time deltas accumulate.
This commit is contained in:
parent
83d14d3380
commit
ed2ed525b2
2 changed files with 2 additions and 1 deletions
|
@ -2477,6 +2477,7 @@ void Application::init() {
|
||||||
|
|
||||||
void Application::setAvatarUpdateThreading(bool isThreaded) {
|
void Application::setAvatarUpdateThreading(bool isThreaded) {
|
||||||
if (_avatarUpdate) {
|
if (_avatarUpdate) {
|
||||||
|
getMyAvatar()->destroyAnimGraph();
|
||||||
_avatarUpdate->terminate();
|
_avatarUpdate->terminate();
|
||||||
}
|
}
|
||||||
_avatarUpdate = new AvatarUpdate();
|
_avatarUpdate = new AvatarUpdate();
|
||||||
|
|
|
@ -152,6 +152,7 @@ public:
|
||||||
|
|
||||||
bool getStandingHMDSensorMode() const { return _standingHMDSensorMode; }
|
bool getStandingHMDSensorMode() const { return _standingHMDSensorMode; }
|
||||||
void doUpdateBillboard();
|
void doUpdateBillboard();
|
||||||
|
void destroyAnimGraph();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void increaseSize();
|
void increaseSize();
|
||||||
|
@ -291,7 +292,6 @@ private:
|
||||||
void maybeUpdateBillboard();
|
void maybeUpdateBillboard();
|
||||||
void initHeadBones();
|
void initHeadBones();
|
||||||
void initAnimGraph();
|
void initAnimGraph();
|
||||||
void destroyAnimGraph();
|
|
||||||
void safelyLoadAnimations();
|
void safelyLoadAnimations();
|
||||||
|
|
||||||
// Avatar Preferences
|
// Avatar Preferences
|
||||||
|
|
Loading…
Reference in a new issue