BonsaiTrees icon indicating copy to clipboard operation
BonsaiTrees copied to clipboard

Unnecessary waste of performance on recipe search

Open twothe opened this issue 3 years ago • 1 comments

While analyzing performance of my server I learned that BT3 constantly searches through the recipes to figure out what to generate.

While this is not a problem on smaller modpacks it becomes a significant loss of performance on larger modpacks like ATM7.

Instead of querying the recipe every single tick it would be sufficient to figure that out once the current growth time has ended and/or the sapling slot has changed. Worst time - if any mod somehow changed recipes, it will waste one growth time, while at the same time the CPU time will go down to almost nothing. Even better solution would be to just cache the recipes locally, as there are usually not that many saplings that are processed.

twothe avatar Jul 04 '22 17:07 twothe

Dear god yes please fix this, I'm working on a modpack that includes over 300 mods and it wasn't till I finally got into mass testing that I realized that this was a problem. I know, begging doesn't get us anywhere, just wanted to make sure it is known that this is still an issue.

Sixdd6 avatar Jan 26 '23 01:01 Sixdd6