My Nether's Delight

My Nether's Delight

4M Downloads

Mod taking up unusual amount of the server thread

meeprdib opened this issue ยท 2 comments

commented

As you can see here in this profiler, "My Nether's Delight" seems to be taking up a large amount of the server thread for a Farmer's Delight addon.
image
https://spark.lucko.me/2GxrCg5p4r

commented

Specifically, it appears whatever method you're adding to vanilla's frog is rather non-performant, taking up 14% of the server execution time in the above performance report.
image

commented

Comparing your code to vanilla, I noticed you are searching for cakes four times a second, as opposed to, say, the fox refreshing once every five seconds. This causes over 37,000 blockstate queries per second per frog. I suggest changing

COOLDOWN_TICKS to 100.