YEngine, change default number of exec threads to 2 of priority Normal. Let the threads priority a option on ini files

This commit is contained in:
UbitUmarov
2019-11-22 07:01:17 +00:00
parent d5f918f945
commit 943d0935a6
4 changed files with 57 additions and 13 deletions

View File

@@ -1750,6 +1750,33 @@
; MeshModelAllowTextureToInventory = true
[YEngine]
;; implements non preemptive microthreading, so fixing problems like llSleep or long events handlers
;; but those will suffer from timeslicing, so will be slower.
;; warning: scripts state is lost on TP or cross to Xengine regions (cars stop, etc)
;; ignore its extensions (subset of original XMRengine), those are still undefined.
;Enabled = false
; maximum stack a script can use in KB
;ScriptStackSize = 2048
; maximum heap memory a script can use in KB
;ScriptHeapSize = 1024
; number of threads to execute script. Too many threads can have negative impact on other region operations
;NumThreadScriptWorkers = 2
; Priority of those threads (Lowest, BelowNormal, Normal, AboveNormal or Highest). Higher priorit can have negative impact on other region operations
;Priority = Normal
; to reuse binary compare sources using a hash codes of them or full text
UseSourceHashCode = true
MinTimerInterval = 0.1
; scripts states and cache parent folder location
;ScriptBasePath="ScriptEngines"
[XEngine]
; Enable this engine in this OpenSim instance