diff options
author | John Hurliman | 2009-10-16 14:17:13 -0700 |
---|---|---|
committer | John Hurliman | 2009-10-16 14:17:13 -0700 |
commit | 1bd9202f2439ac73a70fa2a881f824797f61f589 (patch) | |
tree | ed09eb3671f5bbdec15baf4aaf9069f6ea203902 /OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim into priorit... (diff) | |
download | opensim-SC_OLD-1bd9202f2439ac73a70fa2a881f824797f61f589.zip opensim-SC_OLD-1bd9202f2439ac73a70fa2a881f824797f61f589.tar.gz opensim-SC_OLD-1bd9202f2439ac73a70fa2a881f824797f61f589.tar.bz2 opensim-SC_OLD-1bd9202f2439ac73a70fa2a881f824797f61f589.tar.xz |
* Simplified the prioritization packet creation code to reduce CPU usage and increase throughput. Apologies to Jim for hacking on your code while it's only halfway done, I'll take responsibility for the manual merge
* Changed LLUDP to use its own MTU value of 1400 instead of the 1200 value pulled from the currently shipped libomv
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs index 8c42ca4..9476eed 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs | |||
@@ -297,14 +297,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
297 | 297 | ||
298 | // Make sure none of the throttles are set below our packet MTU, | 298 | // Make sure none of the throttles are set below our packet MTU, |
299 | // otherwise a throttle could become permanently clogged | 299 | // otherwise a throttle could become permanently clogged |
300 | resend = Math.Max(resend, Packet.MTU); | 300 | resend = Math.Max(resend, LLUDPServer.MTU); |
301 | land = Math.Max(land, Packet.MTU); | 301 | land = Math.Max(land, LLUDPServer.MTU); |
302 | wind = Math.Max(wind, Packet.MTU); | 302 | wind = Math.Max(wind, LLUDPServer.MTU); |
303 | cloud = Math.Max(cloud, Packet.MTU); | 303 | cloud = Math.Max(cloud, LLUDPServer.MTU); |
304 | task = Math.Max(task, Packet.MTU); | 304 | task = Math.Max(task, LLUDPServer.MTU); |
305 | texture = Math.Max(texture, Packet.MTU); | 305 | texture = Math.Max(texture, LLUDPServer.MTU); |
306 | asset = Math.Max(asset, Packet.MTU); | 306 | asset = Math.Max(asset, LLUDPServer.MTU); |
307 | state = Math.Max(state, Packet.MTU); | 307 | state = Math.Max(state, LLUDPServer.MTU); |
308 | 308 | ||
309 | int total = resend + land + wind + cloud + task + texture + asset + state; | 309 | int total = resend + land + wind + cloud + task + texture + asset + state; |
310 | 310 | ||
@@ -404,9 +404,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
404 | TokenBucket bucket; | 404 | TokenBucket bucket; |
405 | bool packetSent = false; | 405 | bool packetSent = false; |
406 | 406 | ||
407 | //string queueDebugOutput = String.Empty; // Serious debug business | ||
408 | |||
407 | for (int i = 0; i < THROTTLE_CATEGORY_COUNT; i++) | 409 | for (int i = 0; i < THROTTLE_CATEGORY_COUNT; i++) |
408 | { | 410 | { |
409 | bucket = m_throttleCategories[i]; | 411 | bucket = m_throttleCategories[i]; |
412 | //queueDebugOutput += m_packetOutboxes[i].Count + " "; // Serious debug business | ||
410 | 413 | ||
411 | if (m_nextPackets[i] != null) | 414 | if (m_nextPackets[i] != null) |
412 | { | 415 | { |
@@ -458,6 +461,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
458 | } | 461 | } |
459 | } | 462 | } |
460 | 463 | ||
464 | //m_log.Info("[LLUDPCLIENT]: Queues: " + queueDebugOutput); // Serious debug business | ||
461 | return packetSent; | 465 | return packetSent; |
462 | } | 466 | } |
463 | 467 | ||