From e14c8f59f7205ac010ed13387950647e5023b335 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Fri, 1 Feb 2008 20:45:15 +0000 Subject: Added config options: ScriptThreadPriority to set script thread priority DeactivateScriptOnTimeout to remove script if it is executing too long --- bin/OpenSim.ini.example | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'bin/OpenSim.ini.example') diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index a0ada5c..3169cd0 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -127,13 +127,17 @@ shout_distance = 100 ; Threads are shared across all regions NumberOfScriptThreads=2 +; Script event execution thread priority inside application. +; Valid values: Lowest, BelowNormal, Normal, AboveNormal, Highest +ScriptThreadPriority=BelowNormal + ; Should the script threads be private for each region? ; true: Each region will get dedicated to scripts within that region ; Number of threads will be * ; false: All regions share for all their scripts PrivateRegionThreads=false -; How long MAX should a script be allowed to run? +; How long MAX should a script event be allowed to run (per event execution)? ; Do not set this too low (like 50ms) as there are some time wasted in simply executing a function ; There is also a small speed penalty for every kill that is made MaxEventExecutionTimeMs=5000 @@ -141,6 +145,11 @@ MaxEventExecutionTimeMs=5000 ; Should we enable the max script event execution thread to look for scripts that exceed their timeslice? EnforceMaxEventExecutionTime=true +; Should we stop the script completely when time exceeds? +; This is useful if you have a high and want to deactivate scripts that go wrong +; Note that for example physics engine can slow down the system and make scripts spend more time +DeactivateScriptOnTimeout=false + ; If no scripts have executed in this pass how long should we sleep before checking again ; Impact: ; Too low and you will waste lots of CPU -- cgit v1.1