diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs | 14 |
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 |