mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
Merge pull request #6511 from hyperlogic/tony/avatar-sim-rate-display-fix
Avatar Sim Rate Display fix
This commit is contained in:
commit
455927204e
1 changed files with 3 additions and 1 deletions
|
@ -44,9 +44,11 @@ void AvatarUpdate::synchronousProcess() {
|
||||||
bool AvatarUpdate::process() {
|
bool AvatarUpdate::process() {
|
||||||
PerformanceTimer perfTimer("AvatarUpdate");
|
PerformanceTimer perfTimer("AvatarUpdate");
|
||||||
quint64 start = usecTimestampNow();
|
quint64 start = usecTimestampNow();
|
||||||
quint64 deltaMicroseconds = 0;
|
quint64 deltaMicroseconds = 10000;
|
||||||
if (_lastAvatarUpdate > 0) {
|
if (_lastAvatarUpdate > 0) {
|
||||||
deltaMicroseconds = start - _lastAvatarUpdate;
|
deltaMicroseconds = start - _lastAvatarUpdate;
|
||||||
|
} else {
|
||||||
|
deltaMicroseconds = 10000; // 10 ms
|
||||||
}
|
}
|
||||||
float deltaSeconds = (float) deltaMicroseconds / (float) USECS_PER_SECOND;
|
float deltaSeconds = (float) deltaMicroseconds / (float) USECS_PER_SECOND;
|
||||||
_lastAvatarUpdate = start;
|
_lastAvatarUpdate = start;
|
||||||
|
|
Loading…
Reference in a new issue