Integrated Dynamics

Integrated Dynamics

63M Downloads

Performance issue for Storage Terminal

uhloin opened this issue ยท 2 comments

commented

Issue type:

  • ๐ŸŒ Performance issue

Short description:

Since some size of storage opening of storage terminal with several seconds lag

Steps to reproduce the problem:

  1. Just open/close storage terminal when number of items is a bit more than one full screen
    storage is 2 colossal chests 5x5x5 with item interface
  • it's not important, is it portable or fixed storage terminal
  • size of grid is not important (lag is the same for smallest size)
  • no lags with use grid of Refined Storage mod for the same chests
  • no lags with interface of the chests (instant open/close)
  • no lags in the world when terminal is closed
  • some lags during moving mouse over grid
  • it's not important, if there are animated items in visible part
  • there are some machines working, but insertion to storage is not very big (1-10 items per second)
  • there are no crafting tasks
  • no lags during change search filter text and update grid
  • but lags between clicks to insert several stack of items from inventory to storage

I made 2 profiles for spark them opening/closing interface multiple times


Versions:

  • This mod: 1.20.1-1.22.1
  • Minecraft: 1.20.1
  • Forge: 1.20.1-47.1.100

Profiler output:

Using
https://spark.lucko.me/
integrated
spark.zip

commented

Thanks for reporting!

commented

Notes to self:

  • Lag is caused server-side during init and on updates.
  • Some of this logic can probably be moved off the main server thread.
  • Just to some profiling myself with a huge network (I can simulate one with Colossal Chests).
Screenshot 2024-07-16 at 16 36 20