P3pp3rF1y / AncientWarfare2

Ancient Warfare Mod for Minecraft 1.12.x
GNU General Public License v3.0
144 stars 99 forks source link

Low TPS issue on server running AW2 #1309

Open 623667595 opened 3 years ago

623667595 commented 3 years ago

建议优化生成城镇和NPC算法,不然消耗资源太多

623667595 commented 3 years ago

获得更大的服务器

没有条件,在我所有MOD里 这个mod是最耗资源的,玩家跑图加载到大型城镇,几乎会让服务器TPS下降到15 There are no conditions. Among all my mods, this mod consumes the most resources. When the player's running map is loaded into a large town, it will almost reduce the server TPS to 15

623667595 commented 3 years ago

A single person will also get stuck when loading a large town or building, even if there is only one mod. Allocated 10g of memory can't stop it. As far as I know, this mod gets stuck when many servers load into large towns or buildings, even for a long time. In China, many servers that install this mod have this problem. Many Yuba will adjust the generation probability and distance to alleviate it, but this kind of jam can not be cured. I hope it can be handled 单人也会在加载大型城镇或建筑时卡顿,即使只有这一个MOD。分配了10G内存也阻止不了。据我所知,这个mod在很多服务器加载到大型城镇或建筑时都会卡顿,甚至很久。在中国很多安装这个MOD的服务器,都有这个问题,很多腐竹会调节生成概率和距离来缓解,但不能根治这种卡顿,希望能处理.

WinDanesz commented 3 years ago

AW2 version?

623667595 commented 3 years ago

AW2版本? Latest ancientwarfair-1.12.2-2.7.0.1038

623667595 commented 3 years ago

个人建议可以像虚无模组一样,分成一个客户端模组和服务端模组,那种原理,大幅度降低消耗。这个MOD会在生成大型城镇或建筑卡顿,不管是在客户端单机模式还是服务器多人模式,加载到建筑都会消耗很多资源,我建议可以仿照其他MOD地形建筑生成算法,或者优化算法。 Personal suggestions can be divided into a client module and a server module like a nothingness module. That principle can greatly reduce the consumption. This mod will generate large towns or building jams. Whether it is in client single machine mode or server multi person mode, loading into the building will consume a lot of resources. I suggest that other mod terrain building generation algorithms or optimization algorithms can be imitated.

shinefield commented 3 years ago

这个是mc机制问题,建议你调整配置,减少城镇生成概率和增加城镇生成间隔距离,我的服务器就是这么处理的,主要都是跑图的锅,然后限制跑图,步行跑图没事,飞行跑图过快禁止 mc.shinefield.cn

623667595 commented 3 years ago

There is also an IC2 industrial safe that can be used as a food point without consuming the food inside

shinefield commented 3 years ago

奇了怪了,你一会说中文一会说英文,IC2这个mod没玩过,我不是aw2官方,我也只是个小腐竹,我提的问题倒是没人回答,惨