From d02a90823f2873f1b4de63062e3909d03a5a91fa Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Fri, 1 Feb 2008 23:36:36 +0000 Subject: SCRIPTING STILL BROKEN Added comments and regions, restructured code Changed a lot of AppDomain junk from console from using Console.Write to Log.Verbose and set it to #if DEBUG All modules should now refresh their configuration runtime Made all logging in ScriptEngine.Common get script name from actual engine Renamed LSLLongCmdHandler to AsyncLSLCommandManager Added auto-recover with 5 sec throttle for new MaintenanceThread --- bin/OpenSim.ini.example | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 9d664bf..94bacd1 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -123,6 +123,13 @@ shout_distance = 100 ; Same if you have 10 threads, then only 10 scripts can be run simultaneously. ; But because most scripts exit after their task, the threads are free to go on to the next script. +; Refresh ScriptEngine config options (these settings) every xx seconds +; 0 = Do not refresh +; Set it to number of seconds between refresh, for example 30. +; Will allow you to change ScriptEngine settings while server is running just by editing this file. +; For example to increase or decrease number of threads. +RefreshConfig=0 + ; Number of threads to use for script event execution ; Threads are shared across all regions NumberOfScriptThreads=2 @@ -136,6 +143,7 @@ ScriptThreadPriority=BelowNormal ; Number of threads will be * ; false: All regions share for all their scripts ; Note! If you run multiple script engines based on "OpenSim.Region.ScriptEngine.Common" then all of them will share the same threads. +; *** This setting will not work until you restart OpenSim PrivateRegionThreads=false ; How long MAX should a script event be allowed to run (per event execution)? @@ -164,5 +172,14 @@ SleepTimeIfNoScriptExecutionMs=50 ; Each AppDomain has some memory overhead. But leaving dead scripts in memory also has memory overhead. ScriptsPerAppDomain=1 -; ReRead ScriptEngine config options how often? -ReReadConfig=0 +; Script loading / unloading sleep +; How long load/unload thread should sleep if there is nothing to do +; Higher value makes it respond slower when scripts are added/removed from prims +; But once active it will process all in queue before sleeping again +ScriptLoadUnloadLoopms=30 + +; Async LL command sleep +; If no async LL commands are waiting, how long should thread sleep before checking again +; Async LL commands are LSL-commands that causes an event to be fired back with result +AsyncLLCommandLoopms=50 + -- cgit v1.1