aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs
diff options
context:
space:
mode:
authorlbsa712008-03-18 13:39:29 +0000
committerlbsa712008-03-18 13:39:29 +0000
commit9c428d993504afbda5d11dd644fe1694cc1aee95 (patch)
tree7e4f2dd9f19cb11167e2819f463db3b016cc8654 /OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs
parent* Remove unused (and somewhat nonsensical) method in PhysicsActor (diff)
downloadopensim-SC-9c428d993504afbda5d11dd644fe1694cc1aee95.zip
opensim-SC-9c428d993504afbda5d11dd644fe1694cc1aee95.tar.gz
opensim-SC-9c428d993504afbda5d11dd644fe1694cc1aee95.tar.bz2
opensim-SC-9c428d993504afbda5d11dd644fe1694cc1aee95.tar.xz
* Applied Grumly57 patch for #781; Thanks, Grumly!
Diffstat (limited to 'OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs
index 04cb0d2..a933b08 100644
--- a/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs
+++ b/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs
@@ -70,17 +70,17 @@ namespace OpenSim.Region.ScriptEngine.LSOEngine
70 // Compile (We assume LSL) 70 // Compile (We assume LSL)
71 //ScriptSource = LSLCompiler.CompileFromLSLText(Script); 71 //ScriptSource = LSLCompiler.CompileFromLSLText(Script);
72 72
73#if DEBUG 73//#if DEBUG
74 long before; 74 //long before;
75 before = GC.GetTotalMemory(true); 75 //before = GC.GetTotalMemory(true); // This force a garbage collect that freezes some windows plateforms
76#endif 76//#endif
77 77
78 IScript CompiledScript; 78 IScript CompiledScript;
79 CompiledScript = m_scriptEngine.m_AppDomainManager.LoadScript(ScriptSource); 79 CompiledScript = m_scriptEngine.m_AppDomainManager.LoadScript(ScriptSource);
80 80
81#if DEBUG 81//#if DEBUG
82 Console.WriteLine("Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(true) - before); 82 //Console.WriteLine("Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(true) - before);
83#endif 83//#endif
84 84
85 CompiledScript.Source = ScriptSource; 85 CompiledScript.Source = ScriptSource;
86 // Add it to our script memstruct 86 // Add it to our script memstruct