diff options
| author | raczman <none@none> | 2009-06-15 09:07:51 +0200 |
|---|---|---|
| committer | raczman <none@none> | 2009-06-15 09:07:51 +0200 |
| commit | 19225e8880b12bf3b72743ea253a94b52635a212 (patch) | |
| tree | 6ad5d22134939c7bed0aa1d95d68f354241a5654 /src/trinitycore | |
| parent | 98c8b762b7de97f89ce072e6bd8ace2b832d0742 (diff) | |
Added basic support for multithreaded map updates using openmp standard.
Windows users need to install Platform SDK to use this feature,
linux users have everything they need in gcc.
Number of threads used to update world is set by confiuration file,
and can be changed dynamically without restarting core.
Thanks to megamage and Jeniczek for testing and helping out with this.
--HG--
branch : trunk
Diffstat (limited to 'src/trinitycore')
| -rw-r--r-- | src/trinitycore/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/trinitycore/trinitycore.conf.dist | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/trinitycore/CMakeLists.txt b/src/trinitycore/CMakeLists.txt index 0a9801c5a19..268408fe639 100644 --- a/src/trinitycore/CMakeLists.txt +++ b/src/trinitycore/CMakeLists.txt @@ -45,6 +45,7 @@ vmaps ZThread g3dlite readline +gomp ${SCRIPT_LIB} ${MYSQL_LIBRARIES} ${POSTGRE_LIBS} diff --git a/src/trinitycore/trinitycore.conf.dist b/src/trinitycore/trinitycore.conf.dist index 66884c6d85b..cc8b3d75715 100644 --- a/src/trinitycore/trinitycore.conf.dist +++ b/src/trinitycore/trinitycore.conf.dist @@ -179,6 +179,10 @@ EAIErrorLevel = 2 # Default: 1 (permit addon channel) # 0 (do not permit addon channel) # +# MapUpdate.Threads +# Number of threads to update maps. +# Default: 1 +# ################################################################################################################### UseProcessors = 0 @@ -204,6 +208,7 @@ TargetPosRecalculateRange = 1.5 UpdateUptimeInterval = 10 MaxCoreStuckTime = 0 AddonChannel = 1 +MapUpdate.Threads = 1 ################################################################################################################### # SERVER LOGGING |
