Applied Energistics 2

Applied Energistics 2

137M Downloads

Heavy client lag every time a terminal is opened

TheLastPaladin opened this issue ยท 2 comments

commented

How to reproduce the performance issue

I've been playing All the mods 9 recently with my friends and noticed that after building a middle sized me system that every time we open any storage terminal (anything that shows items stored on drives, so including pattern encoder but excluding pattern terminal) out gets an immense lagspike. The FPS immediately drop to zero and it takes a second or two until the game continues as normal. I figured this might be some kind of graphics error so I checked my MC log. Every time I open the ME terminal I get the line:

[03:10:14] [Render thread/ERROR]: Connector positionNot a map: null

If there is anything I can do about this please let me know. This problem does also occur on tiny systems as long as there are enough items stored. Sometimes for a couple of seconds the issue disappears but I cannot reproduce this behaviour.

Reproducing:

  1. Build ME Network with terminals and drives.
  2. Fill drives with a couple hundret-thousand items.
  3. Wait for 2-5 Minutes.
  4. Observe severe lag/freezing client

Spark profile link

https://spark.lucko.me/PsQcG6wn6L

Which minecraft version are you using?

1.20

On which mod loaders does it happen?

Forge

Additional details

I've ran the profiler while opening the terminal for a couple of times.

commented

image

This is Gregtech taking a long time to compute the tooltip text. The AE2 screen searches the tooltip text, however.
What makes me wonder though: the lag only occurs after the 2-5 minutes?
That might indicate an AE2 issue with heavily changing items.

Can you try disabling the "search in tooltip" feature of your terminal and see how it behaves?

commented

Yeah that fixes it. Makes my wonder why the lag sometimes didn't appear but thank you :)