diff options
Diffstat (limited to 'bin/OpenSim.ini.example')
-rw-r--r-- | bin/OpenSim.ini.example | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 784083d..a0ada5c 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example | |||
@@ -114,3 +114,35 @@ shout_distance = 100 | |||
114 | ; send a Sun update ever frame_rate # of frames. A lower number will | 114 | ; send a Sun update ever frame_rate # of frames. A lower number will |
115 | ; make for smoother sun transition at the cost of network | 115 | ; make for smoother sun transition at the cost of network |
116 | ;frame_rate = 100 | 116 | ;frame_rate = 100 |
117 | |||
118 | [ScriptEngine.DotNetEngine] | ||
119 | |||
120 | ; When a script receives an event the event is queued. | ||
121 | ; Any free thread will start executing this event. One script can only have one event executed simultaneously. | ||
122 | ; If you have only one thread, and one script has a loop or does a lot of work, then no other scripts can run at the same time. | ||
123 | ; Same if you have 10 threads, then only 10 scripts can be run simultaneously. | ||
124 | ; But because most scripts exit after their task, the threads are free to go on to the next script. | ||
125 | |||
126 | ; Number of threads to use for script event execution | ||
127 | ; Threads are shared across all regions | ||
128 | NumberOfScriptThreads=2 | ||
129 | |||
130 | ; Should the script threads be private for each region? | ||
131 | ; true: Each region will get <NumberOfScriptThreads> dedicated to scripts within that region | ||
132 | ; Number of threads will be <NumberOfScriptThreads>*<NumberOfRegions> | ||
133 | ; false: All regions share <NumberOfScriptThreads> for all their scripts | ||
134 | PrivateRegionThreads=false | ||
135 | |||
136 | ; How long MAX should a script be allowed to run? | ||
137 | ; 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 | ||
139 | MaxEventExecutionTimeMs=5000 | ||
140 | |||
141 | ; Should we enable the max script event execution thread to look for scripts that exceed their timeslice? | ||
142 | EnforceMaxEventExecutionTime=true | ||
143 | |||
144 | ; If no scripts have executed in this pass how long should we sleep before checking again | ||
145 | ; Impact: | ||
146 | ; Too low and you will waste lots of CPU | ||
147 | ; Too high and people touching object or similar will have to wait up to this amount of time before script responding | ||
148 | SleepTimeIfNoScriptExecutionMs=50 | ||