mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* Set default client throttle multiplier to 2 (old value was effectively 8). See OpenSim.ini.example for details as to what this means
* Really this should be 1, but I think that this would be too slow compared to a Second Life server until we improve our ability to send textures of variable quality * This may improve one aspect of sim performance where there are many avatars. However, there are still other performance problems that are unrelated to this change * Value may be further tuned * Removed temporary decals since the multipler setting will stick around now
This commit is contained in:
@@ -127,7 +127,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
TotalThrottle
|
||||
= new LLPacketThrottle(
|
||||
totalThrottleSettings.Min, totalThrottleSettings.Max, totalThrottleSettings.Current, userSettings.ClientThrottleMultipler);
|
||||
totalThrottleSettings.Min, totalThrottleSettings.Max, totalThrottleSettings.Current,
|
||||
userSettings.ClientThrottleMultipler);
|
||||
|
||||
throttleTimer = new Timer((int) (throttletimems/throttleTimeDivisor));
|
||||
throttleTimer.Elapsed += new ElapsedEventHandler(ThrottleTimerElapsed);
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
private int m_currentBitsSent;
|
||||
|
||||
/// <value>
|
||||
/// Temporary field
|
||||
/// Value with which to multiply all the throttle fields
|
||||
/// </value>
|
||||
private float m_throttleMultiplier;
|
||||
|
||||
@@ -47,8 +47,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
/// <param name="max"></param>
|
||||
/// <param name="throttle"></param>
|
||||
/// <param name="throttleMultiplier">
|
||||
/// A temporary parameter that's ends up multiplying all throttle settings. This only exists as a path to
|
||||
/// using real throttle values instead of the *8 multipler that we had been using (bytes instead of btis)
|
||||
/// A parameter that's ends up multiplying all throttle settings. An alternative solution would have been
|
||||
/// to multiply all the parameters by this before giving them to the constructor. But doing it this way
|
||||
/// represents the fact that the multiplier is a hack that pumps data to clients much faster than the actual
|
||||
/// settings that we are given.
|
||||
/// </param>
|
||||
public LLPacketThrottle(int min, int max, int throttle, float throttleMultiplier)
|
||||
{
|
||||
@@ -81,7 +83,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
return m_currentBitsSent;
|
||||
}
|
||||
|
||||
// Properties
|
||||
public int Max
|
||||
{
|
||||
get { return m_maxAllowableThrottle; }
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
AssetCache assetCache, AgentCircuitManager circuitManager)
|
||||
{
|
||||
ClientStackUserSettings userSettings = new ClientStackUserSettings();
|
||||
userSettings.ClientThrottleMultipler = 8;
|
||||
userSettings.ClientThrottleMultipler = 2; // default. TODO: Should be a constant somewhere
|
||||
|
||||
IConfig config = configSource.Configs["ClientStack.LindenUDP"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user