Applied Energistics 2

Applied Energistics 2

156M Downloads

Huge Lag When Opening the Terminal

MidCoard opened this issue ยท 3 comments

commented

Describe the bug

(I do not know whether this is a bug or not)
In my server, the AE network has stored more than 2000 types of item.
I have used the spark mod to profile the whole process.
And i have noticed one thing is that
tooltip
the method Platform.getTooltip() has spent much of the time.
So is there an optimization to this method?

How to reproduce the bug

Store huge amount of items and open the terminal

Expected behavior

Not so big lag.

Additional details

No response

Which minecraft version are you using?

1.18

On which mod loaders does it happen?

Fabric

Crash log

https://spark.lucko.me/JtAMATJOBf

commented

Kiwi is adding a list of item tags to the item tooltip. The lookup to get those tags seems to be extremely slow. I'd suggest disabling that feature in the Kiwi config.

commented

ok. Thanks. just now i have noticed it too.

commented

I have disabled the feature in the Kiwi config, but I still feel obvious lag during searching. Since I want to search by tooltip, the Platform#getTooltip method always creates a new ItemStack to get its tooltip. So how about making a cache for it?