mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Merge branch 'master' into httptests
This commit is contained in:
@@ -100,11 +100,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
protected IScriptEngine m_ScriptEngine;
|
||||
protected SceneObjectPart m_host;
|
||||
|
||||
/// <summary>
|
||||
/// Used for script sleeps when we are using co-operative script termination.
|
||||
/// </summary>
|
||||
/// <remarks>null if co-operative script termination is not active</remarks>
|
||||
|
||||
/// <summary>
|
||||
/// The item that hosts this script
|
||||
/// </summary>
|
||||
@@ -1641,12 +1637,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
foreach (SceneObjectPart part in group.Parts)
|
||||
{
|
||||
if (part.PhysicsShapeType == (byte)PhysicsShapeType.None)
|
||||
continue;
|
||||
|
||||
if (part.Scale.X > World.m_maxPhys || part.Scale.Y > World.m_maxPhys || part.Scale.Z > World.m_maxPhys)
|
||||
{
|
||||
allow = false;
|
||||
break;
|
||||
}
|
||||
if (checkShape && part.PhysicsShapeType != (byte)PhysicsShapeType.None)
|
||||
if (checkShape)
|
||||
{
|
||||
if (--maxprims < 0)
|
||||
{
|
||||
|
||||
@@ -110,6 +110,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
private int m_ScriptFailCount; // Number of script fails since compile queue was last empty
|
||||
private string m_ScriptErrorMessage;
|
||||
private bool m_AppDomainLoading;
|
||||
private bool m_CompactMemOnLoad;
|
||||
private Dictionary<UUID,ArrayList> m_ScriptErrors =
|
||||
new Dictionary<UUID,ArrayList>();
|
||||
|
||||
@@ -301,8 +302,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
m_MaxScriptQueue = m_ScriptConfig.GetInt("MaxScriptEventQueue",300);
|
||||
m_StackSize = m_ScriptConfig.GetInt("ThreadStackSize", 262144);
|
||||
m_SleepTime = m_ScriptConfig.GetInt("MaintenanceInterval", 10) * 1000;
|
||||
m_AppDomainLoading = m_ScriptConfig.GetBoolean("AppDomainLoading", true);
|
||||
|
||||
m_AppDomainLoading = m_ScriptConfig.GetBoolean("AppDomainLoading", false);
|
||||
m_CompactMemOnLoad = m_ScriptConfig.GetBoolean("CompactMemOnLoad", false);
|
||||
m_EventLimit = m_ScriptConfig.GetInt("EventLimit", 30);
|
||||
m_KillTimedOutScripts = m_ScriptConfig.GetBoolean("KillTimedOutScripts", false);
|
||||
m_SaveTime = m_ScriptConfig.GetInt("SaveInterval", 120) * 1000;
|
||||
@@ -1278,10 +1279,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
}
|
||||
}
|
||||
|
||||
// do not load a assembly on top of a lot of to release memory
|
||||
// also yield a bit
|
||||
// only if logins disable since causes a lot of rubber banding
|
||||
if(!m_Scene.LoginsEnabled)
|
||||
// optionaly do not load a assembly on top of a lot of to release memory
|
||||
// only if logins disable since causes a lot of rubber banding
|
||||
if(m_CompactMemOnLoad && !m_Scene.LoginsEnabled)
|
||||
GC.Collect(2);
|
||||
|
||||
ScriptInstance instance = null;
|
||||
|
||||
Reference in New Issue
Block a user