mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 17:10:45 +02:00
Fix Avatar Mixer divide by zero error in stats reporting
Under load, the frame count may not be updated between stats reports, causing the diff between frame counts to be zero, resulting in divide by zero errors.
This commit is contained in:
parent
abf2226750
commit
6df28da0a5
1 changed files with 4 additions and 1 deletions
|
@ -656,8 +656,11 @@ void AvatarMixer::handleRadiusIgnoreRequestPacket(QSharedPointer<ReceivedMessage
|
|||
}
|
||||
|
||||
void AvatarMixer::sendStatsPacket() {
|
||||
auto start = usecTimestampNow();
|
||||
if (!_numTightLoopFrames) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto start = usecTimestampNow();
|
||||
|
||||
QJsonObject statsObject;
|
||||
|
||||
|
|
Loading…
Reference in a new issue