JDKDigital / productive-bees

Useful bees
https://www.curseforge.com/minecraft/mc-mods/productivebees
Other
58 stars 40 forks source link

[1.19.3] Performance with bees in the nether - 3-4 TPS 3798 bees. #366

Closed ProsperCraft closed 1 year ago

ProsperCraft commented 1 year ago

There are too many bees in the nether, it appears to be Crimson Shoombees there are dozens of nests around every cluster of Crimson Shooms.

Here is a spark profile - https://spark.lucko.me/uT48CAOR4g

Here is a screenshot of /forge entities list showing 3798 bees. Also showing 2.2 TPS image

On returning to the overworld, here is a screenshot showing 20 TPS image

JaisDK commented 1 year ago

The worldgen must have gotten fucked in the 1.19.3. update. Thanks for reporting it, I'll have a look into it.

dm8mydog commented 1 year ago

Apologies for interjecting with an off topic question, my google-foo is totally failing to give me an answer. What's the command/mod to get the statistics you've shown for the tps?

ProsperCraft commented 1 year ago

The performance profiles are from the mod Spark https://www.curseforge.com/minecraft/mc-mods/spark /spark healthreport is also incredibly helpful.

The TPS is from /forge tps the entities list is from /forge entities list

ImVexed commented 1 year ago

Also observing this issue on my ATM8 server. Dropping to ~10 TPS in the nether. Spark shows ConfigurableBee.tick as the highest consumer, nothing else is even close

JaisDK commented 1 year ago

Can you provide your sparks profile? ATM8 is on 1.19.2 so it might not be the same issue

JaisDK commented 1 year ago

an entity count would also be nice

ImVexed commented 1 year ago

https://spark.lucko.me/NFIN7GUnJ9 Seems to be the Bee's aiStep image

JaisDK commented 1 year ago

42 bees is not uncommon and they use 14% of the resources flying around which is bad but that's just Minecraft pathing being shit.

ImVexed commented 1 year ago

It's more of a problem when we have multiple people running around in the nether, that profile was just me in the nether. But last night we had 2-3 people in there and were dropping to ~10 tps. I didn't manage to catch a profile of that sadly.

Is there any way I can just stop the bees from spawning as a temporary fix?

JaisDK commented 1 year ago

you can run a kill command if you're not interested in keeping the bees

/kill @e[type=productivebees:configurable_bee, name="Warped Shroombee"] /kill @e[type=productivebees:configurable_bee, name="Crimson Shroombee"]

there's also a config option to disable the nether nest spawns, but some say it doesn't work but worth a try

ImVexed commented 1 year ago

Setting:

 #Disable the wander goal in bees to increase performance
        disableWanderGoal = true

Fixed the AIStep usage

JaisDK commented 1 year ago

forgot I had added that, it makes the bees a little bit wonky :D

JaisDK commented 1 year ago

1.19.3 support is dropped