fix(Conf): sync default values with core defaults (#19708)
fix(Conf): sync values with core defaults
This commit is contained in:
parent
9af86553c5
commit
c929b95172
6 changed files with 32 additions and 32 deletions
|
|
@ -233,7 +233,7 @@ int main(int argc, char** argv)
|
|||
signals.async_wait(SignalHandler);
|
||||
|
||||
// Start the Boost based thread pool
|
||||
int numThreads = sConfigMgr->GetOption<int32>("ThreadPool", 1);
|
||||
int numThreads = sConfigMgr->GetOption<int32>("ThreadPool", 2);
|
||||
std::shared_ptr<std::vector<std::thread>> threadPool(new std::vector<std::thread>(), [ioContext](std::vector<std::thread>* del)
|
||||
{
|
||||
ioContext->stop();
|
||||
|
|
@ -257,7 +257,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
// Set process priority according to configuration settings
|
||||
SetProcessPriority("server.worldserver", sConfigMgr->GetOption<int32>(CONFIG_PROCESSOR_AFFINITY, 0), sConfigMgr->GetOption<bool>(CONFIG_HIGH_PRIORITY, false));
|
||||
SetProcessPriority("server.worldserver", sConfigMgr->GetOption<int32>(CONFIG_PROCESSOR_AFFINITY, 0), sConfigMgr->GetOption<bool>(CONFIG_HIGH_PRIORITY, true));
|
||||
|
||||
// Loading modules configs before scripts
|
||||
sConfigMgr->LoadModulesConfigs();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue