-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inventory effects & expressions are really slow in 1.12 #772
Comments
Hmm, sounds like a possible bug. Could you check what happens if you just give player same item in loop, without using loop-value. Does it cause performance issues? |
Made a full test here: Insanely slow:
Reasonable, but slower than manual clearing
I think it's slow for just 4 items
Most performance-friendly inventory clearing:
0.6 ms for one item.
Not bad, but could be better I think.
Faster than looping, so fine
I am comparing only player's tool, I don't think it should take 0.5 ms.
Another thing: The same works for NBT, if I add ANYTHING different in NBT, it won't match the item, even though it matches the conditions. Using only name and enchantments, it'll match normally.
That's it basically. |
I will take look at performance issues. About your "another thing", are you sure it is new with latest release? Sounds like old "feature" for me. |
|
That's because the |
@TrademarkTM Is this still an issue? Bensku has changed the Slot system recently |
The changes are not relevant for this issue. |
Tested on 2.7-beta3, 1.20.1:
It seems to me the main issue is item comparison performance, not inventory manipulation. |
Since we dropped support for legacy versions (1.12-) and there has been many improvements to item comparison I guess this has been improved/fixed on the way. If anyone thinks this is still a problem please open a new issue. |
Hello again.
I was trying to make a kits script. However, I noticed that giving items is working insanely slowly in the new versions (5 ms to give 5 items). You can even feel that there's a big delay between each item appearing in your inventory
Here's how I am doing it:
Takes 1~1.5 ms to run.
However, simply giving the items is laggy:
Takes 5 ms.
Hope you can fix this.
Thanks!
The text was updated successfully, but these errors were encountered: