diff options
author | Tedd Hansen | 2008-02-01 20:45:15 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-02-01 20:45:15 +0000 |
commit | e14c8f59f7205ac010ed13387950647e5023b335 (patch) | |
tree | 2a4be137508c4114c289d960926f95c732c8110e /bin | |
parent | Removed "Loading inventory for Primitive" message. (diff) | |
download | opensim-SC_OLD-e14c8f59f7205ac010ed13387950647e5023b335.zip opensim-SC_OLD-e14c8f59f7205ac010ed13387950647e5023b335.tar.gz opensim-SC_OLD-e14c8f59f7205ac010ed13387950647e5023b335.tar.bz2 opensim-SC_OLD-e14c8f59f7205ac010ed13387950647e5023b335.tar.xz |
Added config options:
ScriptThreadPriority to set script thread priority
DeactivateScriptOnTimeout to remove script if it is executing too long
Diffstat (limited to 'bin')
-rw-r--r-- | bin/OpenSim.ini.example | 11 |
1 files changed, 10 insertions, 1 deletions
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 | |||
127 | ; Threads are shared across all regions | 127 | ; Threads are shared across all regions |
128 | NumberOfScriptThreads=2 | 128 | NumberOfScriptThreads=2 |
129 | 129 | ||
130 | ; Script event execution thread priority inside application. | ||
131 | ; Valid values: Lowest, BelowNormal, Normal, AboveNormal, Highest | ||
132 | ScriptThreadPriority=BelowNormal | ||
133 | |||
130 | ; Should the script threads be private for each region? | 134 | ; Should the script threads be private for each region? |
131 | ; true: Each region will get <NumberOfScriptThreads> dedicated to scripts within that region | 135 | ; true: Each region will get <NumberOfScriptThreads> dedicated to scripts within that region |
132 | ; Number of threads will be <NumberOfScriptThreads>*<NumberOfRegions> | 136 | ; Number of threads will be <NumberOfScriptThreads>*<NumberOfRegions> |
133 | ; false: All regions share <NumberOfScriptThreads> for all their scripts | 137 | ; false: All regions share <NumberOfScriptThreads> for all their scripts |
134 | PrivateRegionThreads=false | 138 | PrivateRegionThreads=false |
135 | 139 | ||
136 | ; How long MAX should a script be allowed to run? | 140 | ; How long MAX should a script event be allowed to run (per event execution)? |
137 | ; Do not set this too low (like 50ms) as there are some time wasted in simply executing a function | 141 | ; Do not set this too low (like 50ms) as there are some time wasted in simply executing a function |
138 | ; There is also a small speed penalty for every kill that is made | 142 | ; There is also a small speed penalty for every kill that is made |
139 | MaxEventExecutionTimeMs=5000 | 143 | MaxEventExecutionTimeMs=5000 |
@@ -141,6 +145,11 @@ MaxEventExecutionTimeMs=5000 | |||
141 | ; Should we enable the max script event execution thread to look for scripts that exceed their timeslice? | 145 | ; Should we enable the max script event execution thread to look for scripts that exceed their timeslice? |
142 | EnforceMaxEventExecutionTime=true | 146 | EnforceMaxEventExecutionTime=true |
143 | 147 | ||
148 | ; Should we stop the script completely when time exceeds? | ||
149 | ; This is useful if you have a high <MaxEventExecutionTimeMs> and want to deactivate scripts that go wrong | ||
150 | ; Note that for example physics engine can slow down the system and make scripts spend more time | ||
151 | DeactivateScriptOnTimeout=false | ||
152 | |||
144 | ; If no scripts have executed in this pass how long should we sleep before checking again | 153 | ; If no scripts have executed in this pass how long should we sleep before checking again |
145 | ; Impact: | 154 | ; Impact: |
146 | ; Too low and you will waste lots of CPU | 155 | ; Too low and you will waste lots of CPU |