
Heavy load from AE2
reqt1m3out opened this issue · 4 comments
How to reproduce the performance issue
As the number of players increases, load on AE grows exponentially due to various broadcasts changes, cache invalidations occurring at any given moment, and other frequently ticking operations.
Spark profile link
Pinned them
Which minecraft version are you using?
1.20
On which mod loaders does it happen?
Forge
Additional details
You do have a ton of addons that are accounted under AE2s ticking times.
However, I can see two abnormalities:
-
A long time is spent updating clients on the drive cells LED color, which should only happen if the drive LED keeps changing between colors during a tick (i.e. it keeps going from completely empty to having an item, or from completely full to having space left).
That's something we could optimize better. -
Updating the available stacks in inventories is taking a long time, which may be an indication someone is seriously overdoing it. We did optimize this a while ago to update less often, but storage watchers (level emitters, for example) will still cause it to update on every tick for a grid inventory.
Sadly the grid analyze commands aren't available on 1.20.1, so finding which grids are exceedingly contributing to this tick time is hard.
2. but storage watchers (level emitters, for example) will still cause it to update on every tick for a grid inventory.
possible to move to events so it doesnt do this every tick?
- but storage watchers (level emitters, for example) will still cause it to update on every tick for a grid inventory.
possible to move to events so it doesnt do this every tick?
No, that would delay updating the level emitters too