aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs18
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs b/OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs
index c9aac0b..451dee5 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/ThrottleRates.cs
@@ -59,6 +59,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
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>Amount of the texture throttle to steal for the task throttle</summary>
63 public double CannibalizeTextureRate;
64
65 public int ClientMaxRate;
66 public float BrustTime;
67
62 /// <summary> 68 /// <summary>
63 /// Default constructor 69 /// Default constructor
64 /// </summary> 70 /// </summary>
@@ -77,9 +83,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP
77 Texture = throttleConfig.GetInt("texture_default", 18500); 83 Texture = throttleConfig.GetInt("texture_default", 18500);
78 Asset = throttleConfig.GetInt("asset_default", 10500); 84 Asset = throttleConfig.GetInt("asset_default", 10500);
79 85
80 Total = throttleConfig.GetInt("client_throttle_max_bps", 0); 86 Total = Resend + Land + Wind + Cloud + Task + Texture + Asset;
87 // 3000000 bps default max
88 ClientMaxRate = throttleConfig.GetInt("client_throttle_max_bps", 375000);
89 if (ClientMaxRate > 1000000)
90 ClientMaxRate = 1000000; // no more than 8Mbps
91
92 BrustTime = (float)throttleConfig.GetInt("client_throttle_burtsTimeMS", 10);
93 BrustTime *= 1e-3f;
81 94
82 AdaptiveThrottlesEnabled = throttleConfig.GetBoolean("enable_adaptive_throttles", false); 95 AdaptiveThrottlesEnabled = throttleConfig.GetBoolean("enable_adaptive_throttles", false);
96
97 CannibalizeTextureRate = (double)throttleConfig.GetFloat("CannibalizeTextureRate", 0.0f);
98 CannibalizeTextureRate = Util.Clamp<double>(CannibalizeTextureRate,0.0, 0.9);
83 } 99 }
84 catch (Exception) { } 100 catch (Exception) { }
85 } 101 }