SmileycorpMC / The-Hordes

Minecraft mod which adds zombie infection and mob invasions
GNU Lesser General Public License v2.1
4 stars 7 forks source link

TPS Zombie Wave 🔥 1.20.1 Forge #103

Closed Krimatoria closed 2 months ago

Krimatoria commented 9 months ago

The-Hordes-1.20.1-1.3.2b.jar

I've been trying to figure out the reason for the TPS drop for a long time. It turned out that this happens when there is a wave of zombies, especially if they can't find their way to me. At the same time, which is very strange, they follow me even in creative mode when I'm in the spectator.

They're trying to get through the wall, but of course they can't do it. They swim in the water and collide with each other endlessly.

I hope this will somehow help to correct possible errors. There is also a difference whether I look at them from above or I am in the water, there is much less drawdown in the water, apparently less movement.

2024-03-05_00 37 20 2024-03-05_00 37 25 2024-03-05_00 37 34 2024-03-05_00 37 45 2024-03-05_00 37 54 2024-03-05_00 41 30 2024-03-05_00 41 38 2024-03-05_00 41 47

SmileycorpMC commented 9 months ago

There's a config option to increase the time between pathing ai checks in the config file.

I think the issue may just be how drowned pathing works, but I'll look into any way the performance can be improved.

Krimatoria commented 9 months ago

В конфигурации есть опция, позволяющая увеличить время между проверками пути ai в файле конфигурации.

Я думаю, что проблема может заключаться в том, как работает утопленный путь, но я рассмотрю любые способы улучшения производительности.

Thanks) The mod is beautiful)))) It's actually a very cool job) Good luck)

Krimatoria commented 9 months ago

There's a config option to increase the time between pathing ai checks in the config file.

I think the issue may just be how drowned pathing works, but I'll look into any way the performance can be improved.

image

SmileycorpMC commented 9 months ago

If you go to hordes-common.toml in the config folder of your game directory and find hordePathingInterval, you can increase this number to make the horde entities check pathing less often.

Krimatoria commented 9 months ago

Если вы зайдете в hordes-common.toml в папке конфигурации вашего игрового каталога и найдете hordePathingInterval, вы можете увеличить это число, чтобы объекты орды реже проверяли путь.

Ok)))

Krimatoria commented 9 months ago

If you go to hordes-common.toml in the config folder of your game directory and find hordePathingInterval, you can increase this number to make the horde entities check pathing less often.

There's a config option to increase the time between pathing ai checks in the config file.

I think the issue may just be how drowned pathing works, but I'll look into any way the performance can be improved.

By the way, this is also my branch, I opened it earlier, it's the same there, but just another example with Husk and horses) But on 1.19.2 https://github.com/SmileycorpMC/The-Hordes/issues/101