mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
Plumb conifg into the client views. Add config option to configure packet
dropping.
This commit is contained in:
@@ -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>());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user