mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Merge remote-tracking branch 'origin/avatar-hero-zone-improvements' into avatar-hero-zone-improvements
This commit is contained in:
commit
c4fd58eb3e
1 changed files with 0 additions and 1 deletions
|
@ -1005,7 +1005,6 @@ void AvatarMixer::parseDomainServerSettings(const QJsonObject& domainSettings) {
|
||||||
{ // Fraction of downstream bandwidth reserved for 'hero' avatars:
|
{ // Fraction of downstream bandwidth reserved for 'hero' avatars:
|
||||||
static const QString PRIORITY_FRACTION_KEY = "priority_fraction";
|
static const QString PRIORITY_FRACTION_KEY = "priority_fraction";
|
||||||
if (avatarMixerGroupObject.contains(PRIORITY_FRACTION_KEY)) {
|
if (avatarMixerGroupObject.contains(PRIORITY_FRACTION_KEY)) {
|
||||||
bool isDouble = avatarMixerGroupObject[PRIORITY_FRACTION_KEY].isDouble();
|
|
||||||
float priorityFraction = float(avatarMixerGroupObject[PRIORITY_FRACTION_KEY].toDouble());
|
float priorityFraction = float(avatarMixerGroupObject[PRIORITY_FRACTION_KEY].toDouble());
|
||||||
_slavePool.setPriorityReservedFraction(std::min(std::max(0.0f, priorityFraction), 1.0f));
|
_slavePool.setPriorityReservedFraction(std::min(std::max(0.0f, priorityFraction), 1.0f));
|
||||||
qCDebug(avatars) << "Avatar mixer reserving" << priorityFraction << "of bandwidth for priority avatars";
|
qCDebug(avatars) << "Avatar mixer reserving" << priorityFraction << "of bandwidth for priority avatars";
|
||||||
|
|
Loading…
Reference in a new issue