move updates from updates queues into udp queues acording to their payload estimated size and udp sending capability on a time slice, instead always moving a arbitrary number of updates.

This commit is contained in:
UbitUmarov
2016-08-07 17:07:09 +01:00
parent ff0ccf9c67
commit c255c23981
2 changed files with 46 additions and 40 deletions

View File

@@ -771,8 +771,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
RTO = Math.Min(RTO * 2, m_maxRTO);
}
const int MIN_CALLBACK_MS = 10;
const int MIN_CALLBACK_MS = 20;
/// <summary>
/// Does an early check to see if this queue empty callback is already
@@ -807,9 +806,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
}
else
{
m_isQueueEmptyRunning = false;
}
}
}