aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorubit2013-01-16 16:35:09 +0100
committerubit2013-01-16 16:35:09 +0100
commit778ed1c05a5d2cf52161585bec793e027899a7dd (patch)
treee9d08e66df70fc419570568314956e58926c70cd /OpenSim
parentMerge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork (diff)
parent fix STATE udp queue data rate since it is in use again, after being (diff)
downloadopensim-SC_OLD-778ed1c05a5d2cf52161585bec793e027899a7dd.zip
opensim-SC_OLD-778ed1c05a5d2cf52161585bec793e027899a7dd.tar.gz
opensim-SC_OLD-778ed1c05a5d2cf52161585bec793e027899a7dd.tar.bz2
opensim-SC_OLD-778ed1c05a5d2cf52161585bec793e027899a7dd.tar.xz
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
index f675377..6485c1a 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
@@ -339,7 +339,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
339 int texture = (int)(BitConverter.ToSingle(adjData, pos) * 0.125f); pos += 4; 339 int texture = (int)(BitConverter.ToSingle(adjData, pos) * 0.125f); pos += 4;
340 int asset = (int)(BitConverter.ToSingle(adjData, pos) * 0.125f); 340 int asset = (int)(BitConverter.ToSingle(adjData, pos) * 0.125f);
341 // State is a subcategory of task that we allocate a percentage to 341 // State is a subcategory of task that we allocate a percentage to
342 int state = 0; 342// int state = 0;
343 int state = (int)((1.0f - STATE_TASK_PERCENTAGE) * (float)task);
344 task = (int)(STATE_TASK_PERCENTAGE * (float)task);
343 345
344 // Make sure none of the throttles are set below our packet MTU, 346 // Make sure none of the throttles are set below our packet MTU,
345 // otherwise a throttle could become permanently clogged 347 // otherwise a throttle could become permanently clogged
@@ -350,6 +352,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
350 task = Math.Max(task, LLUDPServer.MTU); 352 task = Math.Max(task, LLUDPServer.MTU);
351 texture = Math.Max(texture, LLUDPServer.MTU); 353 texture = Math.Max(texture, LLUDPServer.MTU);
352 asset = Math.Max(asset, LLUDPServer.MTU); 354 asset = Math.Max(asset, LLUDPServer.MTU);
355 state = Math.Max(state, LLUDPServer.MTU);
353 356
354 //int total = resend + land + wind + cloud + task + texture + asset; 357 //int total = resend + land + wind + cloud + task + texture + asset;
355 //m_log.DebugFormat("[LLUDPCLIENT]: {0} is setting throttles. Resend={1}, Land={2}, Wind={3}, Cloud={4}, Task={5}, Texture={6}, Asset={7}, Total={8}", 358 //m_log.DebugFormat("[LLUDPCLIENT]: {0} is setting throttles. Resend={1}, Land={2}, Wind={3}, Cloud={4}, Task={5}, Texture={6}, Asset={7}, Total={8}",