Corosauce / ZombieAwareness

Minecraft Forge Mod - Ehanced AI awareness for vanilla MC mobs
http://coros.us/mods/zombieawareness
47 stars 19 forks source link

You might want to reduce the spawn rate of the scent entity #35

Closed Sunconure11 closed 5 years ago

Sunconure11 commented 6 years ago

I decided to run my server through tickprofiler, and noticed quite an abundance of scent...

https://pastebin.com/77NLTdem

This appears to be causing a noticeable FPS drop, as well.

Run /kill @e[type=zombieawareness:EntityScent] in a world and FPS will skyrocket.

ThunderBolt6 commented 6 years ago

on what do you have "D:extraScentCutoffRange=" on general.cfg?

Sunconure11 commented 6 years ago

@ThunderBolt6 1.0

ThunderBolt6 commented 6 years ago

increase that, lower numbers = less blocks between entity scent(and i think that number is in blocks), for compison i have it on 2, and work fine even with a huge modpack(and 100 entities on the chunks loaded by player(non scent entity))

darthvader45 commented 6 years ago

I might have to take a look. Maybe increase the default value to around 5 or so? Might help with lag, though it could hurt pathfinding a tad.

ScienceDrummer commented 6 years ago

This might be why I'm getting server lag in a single player world.

Corosauce commented 5 years ago

Yeah do what ThunderBolt6 suggested and that should improve it, recently noticed a high count in a private modpack, I think I might up this to at least 3 to help keep the count down.

Corosauce commented 5 years ago

https://github.com/Corosauce/ZombieAwareness/commit/40b4c91e19225fae6fd48863c7af9bb46deabea9