fix(Conf): sync default values with core defaults (#19708)

fix(Conf): sync values with core defaults
This commit is contained in:
sudlud
2024-09-03 13:02:28 +02:00
committed by GitHub
parent 9af86553c5
commit c929b95172
6 changed files with 32 additions and 32 deletions

View File

@@ -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();