aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine
diff options
context:
space:
mode:
authorUbitUmarov2016-09-01 20:49:07 +0100
committerUbitUmarov2016-09-01 20:49:07 +0100
commit054cc8f08e00e7f0810d2397403d154ad4d4da87 (patch)
tree2c6789671e77e0342aa234616f33895523195b63 /OpenSim/Region/ScriptEngine/XEngine
parentremove some MegaRegions code from ubOde (diff)
downloadopensim-SC-054cc8f08e00e7f0810d2397403d154ad4d4da87.zip
opensim-SC-054cc8f08e00e7f0810d2397403d154ad4d4da87.tar.gz
opensim-SC-054cc8f08e00e7f0810d2397403d154ad4d4da87.tar.bz2
opensim-SC-054cc8f08e00e7f0810d2397403d154ad4d4da87.tar.xz
Xengine only do GC.Collect if logins disabled
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rwxr-xr-xOpenSim/Region/ScriptEngine/XEngine/XEngine.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index a9e6132..3038915 100755
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -1280,7 +1280,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
1280 1280
1281 // do not load a assembly on top of a lot of to release memory 1281 // do not load a assembly on top of a lot of to release memory
1282 // also yield a bit 1282 // also yield a bit
1283 GC.Collect(2); 1283 // only if logins disable since causes a lot of rubber banding
1284 if(!m_Scene.LoginsEnabled)
1285 GC.Collect(2);
1284 1286
1285 ScriptInstance instance = null; 1287 ScriptInstance instance = null;
1286 lock (m_Scripts) 1288 lock (m_Scripts)