Xengine only do GC.Collect if logins disabled

LSLKeyTest
UbitUmarov 2016-09-01 20:49:07 +01:00
parent f6eac5aa7a
commit 054cc8f08e
1 changed files with 3 additions and 1 deletions

View File

@ -1280,6 +1280,8 @@ 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)
GC.Collect(2);
ScriptInstance instance = null;