Minecraftforge: Performance issues with Capabilities event in ItemStacks

Created on 14 Jul 2018  ·  3Comments  ·  Source: MinecraftForge/MinecraftForge

I have been working on improving the performance of my server the past months and I did create and look through hundreds of nps files. During this time I did encounter multiple occasions where the EventBus#post of gatherCapabilities in the ItemStack class was showing up with a very long time.

It would be great if we can find a solution for this issue.


Profiling Screenshots
ItemStack forgeInit:
Botania:

Thermal Dynamics:

RefinedStorage:

DankNull:

mcjtylib:

ExtraUtilties2:




forge-1.12.2-14.23.4.2705

Most helpful comment

That doesnt change the fact that we cant make a for loop any more efficient then it is already. If you cant live without the laggy mods then start yelling at the mod authors to be more efficient on their end.

All 3 comments

Remove the mods that are being expensive. The event is as cheap as possible on our end as it can be.
Not to mention we dont support anything related to Sponge "performance issues".
And as always, the forums are where you wanna go for simple stuff like this.

That would be over 5 mods I would need to remove, that's not a solution.

That doesnt change the fact that we cant make a for loop any more efficient then it is already. If you cant live without the laggy mods then start yelling at the mod authors to be more efficient on their end.

Was this page helpful?
0 / 5 - 0 ratings