Open barcharcraz opened 5 years ago
Will give that a look, thanks.
I can confirm: ItemStack creation in recipe inputs/outputs is taking a lot of time.
It depends on ItemStack capabilities tho. More capabilities you have in your modpack - more time it'll take to stop integrated server / leave dedicated server.
Basically when client is leaving server TooltipEvent
being posted. And that's where GlobbyEventHandler#handleTooltip will try to collect all tooltips. And as your recipe system is giving copy of each ItemStack
(in Chemical Extractor Recipe for example) it will try to create new ItemStack, collect all capabilities via Forge event and slow down everything.
Looking at the source code it looks like this is returning a new COPY of the item stack every time it's called. I suspect this is the problem, but I don't know who owns the item stack.
This function is showing up really, really high in my profiles for both loading and client thread gameplay.