XEngine: make calls to gc.collect on region startup scripts loading a configurable option, since it is very slow operation

This commit is contained in:
UbitUmarov
2016-11-03 12:58:43 +00:00
parent f29d5ad662
commit 73b20c2ca2
3 changed files with 28 additions and 12 deletions

View File

@@ -925,6 +925,13 @@
;; by scripts have changed.
; DeleteScriptsOnStartup = true
;# {CompactMemOnLoad} {} {compacts memory on each script load at startup?} {true false} false
;; forces calls to memory garbage collector before loading each script DLL during region startup.
;; Peek memory usage is reduced and region starts with a more compacted memory allocation.
;; But this costs a lot of time, so region load will take a lot longer.
;; it is more usefull if there are no previously compiled scripts DLLs (as with DeleteScriptsOnStartup = true)
;CompactMemOnLoad = false
;# {DefaultCompileLanguage} {Enabled:true} {Default script language?} {lsl vb cs} lsl
;; Default language for scripts
; DefaultCompileLanguage = "lsl"