aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/OpenSim.ini.example
diff options
context:
space:
mode:
authorTedd Hansen2008-02-01 20:12:25 +0000
committerTedd Hansen2008-02-01 20:12:25 +0000
commita9c1f3fdb4f7c7de0fe5e61ed0ecad7318137973 (patch)
treeb4f7d09923248de11a88b7faf1f40521e9f1efc6 /bin/OpenSim.ini.example
parentHighly experimental (diff)
downloadopensim-SC-a9c1f3fdb4f7c7de0fe5e61ed0ecad7318137973.zip
opensim-SC-a9c1f3fdb4f7c7de0fe5e61ed0ecad7318137973.tar.gz
opensim-SC-a9c1f3fdb4f7c7de0fe5e61ed0ecad7318137973.tar.bz2
opensim-SC-a9c1f3fdb4f7c7de0fe5e61ed0ecad7318137973.tar.xz
Experimental
Moved DotNetScriptEngine configuration to config file. Added option to share script execution threads between regions.
Diffstat (limited to 'bin/OpenSim.ini.example')
-rw-r--r--bin/OpenSim.ini.example32
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
128NumberOfScriptThreads=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
134PrivateRegionThreads=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
139MaxEventExecutionTimeMs=5000
140
141; Should we enable the max script event execution thread to look for scripts that exceed their timeslice?
142EnforceMaxEventExecutionTime=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
148SleepTimeIfNoScriptExecutionMs=50