Skip to content

Commit

Permalink
Add some missing settings
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1arm committed Aug 30, 2024
1 parent ce9495f commit efae1c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/WorldHandlers/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,8 @@ void World::LoadConfigSettings(bool reload)
sMapMgr.SetGridCleanUpDelay(getConfig(CONFIG_UINT32_INTERVAL_GRIDCLEAN));
}

setConfig(CONFIG_UINT32_NUMTHREADS, "MapUpdateThreads", 2);

setConfigMin(CONFIG_UINT32_INTERVAL_MAPUPDATE, "MapUpdateInterval", 100, MIN_MAP_UPDATE_DELAY);
if (reload)
{
Expand Down
1 change: 1 addition & 0 deletions src/game/WorldHandlers/World.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ enum eConfigUInt32Values
CONFIG_UINT32_CHARDELETE_KEEP_DAYS,
CONFIG_UINT32_CHARDELETE_METHOD,
CONFIG_UINT32_CHARDELETE_MIN_LEVEL,
CONFIG_UINT32_NUMTHREADS,
CONFIG_UINT32_GUID_RESERVE_SIZE_CREATURE,
CONFIG_UINT32_GUID_RESERVE_SIZE_GAMEOBJECT,
CONFIG_UINT32_MIN_LEVEL_FOR_RAID,
Expand Down
5 changes: 5 additions & 0 deletions src/mangosd/mangosd.conf.dist.in
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ BindIP = "0.0.0.0"
# Map update interval (in milliseconds)
# Default: 100
#
# MapUpdateThreads
# Number of map update threads to run
# Default: 2
#
# ChangeWeatherInterval
# Weather update interval (in milliseconds)
# Default: 600000 (10 min)
Expand Down Expand Up @@ -219,6 +223,7 @@ GridUnload = 1
LoadAllGridsOnMaps = ""
GridCleanUpDelay = 300000
MapUpdateInterval = 100
MapUpdateThreads = 2
ChangeWeatherInterval = 600000
PlayerSave.Interval = 900000
PlayerSave.Stats.MinLevel = 0
Expand Down

0 comments on commit efae1c7

Please sign in to comment.