diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs b/OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs index c9aac0b..7a2756b 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs | |||
@@ -58,7 +58,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
58 | 58 | ||
59 | /// <summary>Flag used to enable adaptive throttles</summary> | 59 | /// <summary>Flag used to enable adaptive throttles</summary> |
60 | public bool AdaptiveThrottlesEnabled; | 60 | public bool AdaptiveThrottlesEnabled; |
61 | 61 | ||
62 | /// <summary> | ||
63 | /// Set the minimum rate that the adaptive throttles can set. The viewer | ||
64 | /// can still throttle lower than this, but the adaptive throttles will | ||
65 | /// never decrease rates below this no matter how many packets are dropped | ||
66 | /// </summary> | ||
67 | public Int64 MinimumAdaptiveThrottleRate; | ||
68 | |||
69 | /// <summary>Amount of the texture throttle to steal for the task throttle</summary> | ||
70 | public double CannibalizeTextureRate; | ||
71 | |||
62 | /// <summary> | 72 | /// <summary> |
63 | /// Default constructor | 73 | /// Default constructor |
64 | /// </summary> | 74 | /// </summary> |
@@ -69,6 +79,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
69 | { | 79 | { |
70 | IConfig throttleConfig = config.Configs["ClientStack.LindenUDP"]; | 80 | IConfig throttleConfig = config.Configs["ClientStack.LindenUDP"]; |
71 | 81 | ||
82 | // Current default total is 66750 | ||
72 | Resend = throttleConfig.GetInt("resend_default", 6625); | 83 | Resend = throttleConfig.GetInt("resend_default", 6625); |
73 | Land = throttleConfig.GetInt("land_default", 9125); | 84 | Land = throttleConfig.GetInt("land_default", 9125); |
74 | Wind = throttleConfig.GetInt("wind_default", 1750); | 85 | Wind = throttleConfig.GetInt("wind_default", 1750); |
@@ -80,6 +91,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
80 | Total = throttleConfig.GetInt("client_throttle_max_bps", 0); | 91 | Total = throttleConfig.GetInt("client_throttle_max_bps", 0); |
81 | 92 | ||
82 | AdaptiveThrottlesEnabled = throttleConfig.GetBoolean("enable_adaptive_throttles", false); | 93 | AdaptiveThrottlesEnabled = throttleConfig.GetBoolean("enable_adaptive_throttles", false); |
94 | MinimumAdaptiveThrottleRate = throttleConfig.GetInt("adaptive_throttle_min_bps", 32000); | ||
95 | |||
96 | CannibalizeTextureRate = (double)throttleConfig.GetFloat("CannibalizeTextureRate", 0.0f); | ||
97 | CannibalizeTextureRate = Util.Clamp<double>(CannibalizeTextureRate,0.0, 0.9); | ||
83 | } | 98 | } |
84 | catch (Exception) { } | 99 | catch (Exception) { } |
85 | } | 100 | } |