From 4c45b5fd3c6b636552b819c6a56c1a3c23683bfb Mon Sep 17 00:00:00 2001
From: John Hurliman
Date: Fri, 23 Oct 2009 10:35:47 -0700
Subject: Cleaning up OpenSim.ini.example for LLUDP. The [LLClient] section has
been removed and several new parameters have been added to
[ClientStack.LindenUDP]
---
.../Region/ClientStack/LindenUDP/LLClientView.cs | 17 ++++-----------
.../Region/ClientStack/LindenUDP/LLUDPServer.cs | 24 ++++++++++++++++++++++
2 files changed, 28 insertions(+), 13 deletions(-)
(limited to 'OpenSim')
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index e81ff4b..6f0b177 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -346,15 +346,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
protected int m_terrainCheckerCount;
protected uint m_agentFOVCounter;
- // These numbers are guesses at a decent tradeoff between responsiveness
- // of the interest list and throughput. Lower is more responsive, higher
- // is better throughput
- protected int m_primTerseUpdatesPerPacket = 25;
- protected int m_primFullUpdatesPerPacket = 100;
- protected int m_avatarTerseUpdatesPerPacket = 10;
- /// Number of texture packets to put on the queue each time the
- /// OnQueueEmpty event is triggered for the texture category
- protected int m_textureSendLimit = 20;
protected IAssetService m_assetService;
private IHyperAssetService m_hyperAssets;
@@ -3333,7 +3324,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
lock (m_avatarTerseUpdates.SyncRoot)
{
- int count = Math.Min(m_avatarTerseUpdates.Count, m_avatarTerseUpdatesPerPacket);
+ int count = Math.Min(m_avatarTerseUpdates.Count, m_udpServer.AvatarTerseUpdatesPerPacket);
if (count == 0)
return;
@@ -3418,7 +3409,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
lock (m_primFullUpdates.SyncRoot)
{
- int count = Math.Min(m_primFullUpdates.Count, m_primFullUpdatesPerPacket);
+ int count = Math.Min(m_primFullUpdates.Count, m_udpServer.PrimFullUpdatesPerPacket);
if (count == 0)
return;
@@ -3462,7 +3453,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
lock (m_primTerseUpdates.SyncRoot)
{
- int count = Math.Min(m_primTerseUpdates.Count, m_primTerseUpdatesPerPacket);
+ int count = Math.Min(m_primTerseUpdates.Count, m_udpServer.PrimTerseUpdatesPerPacket);
if (count == 0)
return;
@@ -3585,7 +3576,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
void ProcessTextureRequests()
{
if (m_imageManager != null)
- m_imageManager.ProcessImageQueue(m_textureSendLimit);
+ m_imageManager.ProcessImageQueue(m_udpServer.TextureSendLimit);
}
public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID)
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
index e9faf2e..232c9c9 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
@@ -98,6 +98,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// The measured resolution of Environment.TickCount
public readonly float TickCountResolution;
+ /// Number of terse prim updates to put on the queue each time the
+ /// OnQueueEmpty event is triggered for updates
+ public readonly int PrimTerseUpdatesPerPacket;
+ /// Number of terse avatar updates to put on the queue each time the
+ /// OnQueueEmpty event is triggered for updates
+ public readonly int AvatarTerseUpdatesPerPacket;
+ /// Number of full prim updates to put on the queue each time the
+ /// OnQueueEmpty event is triggered for updates
+ public readonly int PrimFullUpdatesPerPacket;
+ /// Number of texture packets to put on the queue each time the
+ /// OnQueueEmpty event is triggered for textures
+ public readonly int TextureSendLimit;
/// Handlers for incoming packets
//PacketEventDictionary packetEvents = new PacketEventDictionary();
@@ -172,6 +184,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP
m_asyncPacketHandling = config.GetBoolean("async_packet_handling", false);
m_recvBufferSize = config.GetInt("client_socket_rcvbuf_size", 0);
sceneThrottleBps = config.GetInt("scene_throttle_max_bps", 0);
+
+ PrimTerseUpdatesPerPacket = config.GetInt("PrimTerseUpdatesPerPacket", 25);
+ AvatarTerseUpdatesPerPacket = config.GetInt("AvatarTerseUpdatesPerPacket", 10);
+ PrimFullUpdatesPerPacket = config.GetInt("PrimFullUpdatesPerPacket", 100);
+ TextureSendLimit = config.GetInt("TextureSendLimit", 20);
+ }
+ else
+ {
+ PrimTerseUpdatesPerPacket = 25;
+ AvatarTerseUpdatesPerPacket = 10;
+ PrimFullUpdatesPerPacket = 100;
+ TextureSendLimit = 20;
}
m_throttle = new TokenBucket(null, sceneThrottleBps, sceneThrottleBps);
--
cgit v1.1