启动worldserver后,发现服务器worldserver进程的CPU占用率到了100%,也会导致我打开终端都显得有点小卡顿的样子。百度了一下,一无所获,只好用bing搜索了,发现了一篇老外的关于这个问题的解释:
2023-09-25T13:03:30.png
I found that modifying this configuration item can reduce CPU usage, but it is not clear which program functions will affect the execution performance.

MinWorldUpdateTime is approximately the minimum time slot unit during game execution. For an online game, it seems that the current default recommended 1ms is too harsh, so I switched to 10ms.

MapUpdateInterval should be based on the update interval of map change data. I remember before 2021, this parameter seemed to have been 100ms, but for some reason, the recommended default value has now been changed to 10ms.

These two configuration parameters have a significant impact on the resource usage during program operation, so adjustments have also shown an effect.

Anyway, if the same source code version and configuration result in a significantly lower CPU usage of the compiled worldserver program under WINDOWS compared to LINUX, I think we still haven't found the source of this problem.

from azerothcore-wotlk.

所以,他觉得这是最新版本的默认参数调整了导致的,解决办法就是把worldserver.conf中的
MinWorldUpdateTime = 1 调整为 10
MapUpdateInterval = 1 调整为 100

改完重启,OK了!

标签: none