Add a tweakable for the prim queue preload

This commit is contained in:
Melanie Thielker
2009-05-01 19:33:18 +00:00
parent 52d80249d3
commit 0f721da5f1
4 changed files with 22 additions and 9 deletions

View File

@@ -168,6 +168,7 @@ namespace OpenSim.Region.Framework.Scenes
private volatile bool shuttingdown = false;
private int m_lastUpdate = Environment.TickCount;
private int m_maxPrimsPerFrame = 200;
private object m_deleting_scene_object = new object();
@@ -229,6 +230,12 @@ namespace OpenSim.Region.Framework.Scenes
get { return m_timedilation; }
}
public int MaxPrimsPerFrame
{
get { return m_maxPrimsPerFrame; }
set { m_maxPrimsPerFrame = value; }
}
/// <summary>
/// This is for llGetRegionFPS
/// </summary>
@@ -372,6 +379,8 @@ namespace OpenSim.Region.Framework.Scenes
m_persistAfter *= 10000000;
m_defaultScriptEngine = startupConfig.GetString("DefaultScriptEngine", "DotNetEngine");
m_maxPrimsPerFrame = startupConfig.GetInt("MaxPrimsPerFrame", 200);
}
catch
{