Plumb conifg into the client views. Add config option to configure packet

dropping.
This commit is contained in:
Melanie Thielker
2009-05-02 17:31:49 +00:00
parent 011448f69a
commit 66e25abbfe
6 changed files with 31 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ using OpenSim.Framework.Statistics;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
using Timer=System.Timers.Timer;
using Nini.Config;
namespace OpenSim.Region.ClientStack.LindenUDP
{
@@ -517,6 +518,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
m_PacketHandler.SynchronizeClient = SynchronizeClient;
m_PacketHandler.OnPacketStats += PopulateStats;
if (scene.Config != null)
{
IConfig clientConfig = scene.Config.Configs["LLClient"];
if (clientConfig != null)
{
m_PacketHandler.ReliableIsImportant =
clientConfig.GetBoolean("ReliableIsImportant",
false);
}
}
RegisterLocalPacketHandlers();
m_imageManager = new LLImageManager(this, m_assetCache,Scene.RequestModuleInterface<IJ2KDecoder>());
}