CyclopsMC / IntegratedTerminals

Terminals for managing and overviewing Integrated Dynamics networks
MIT License
5 stars 6 forks source link

Large server hang when shift click crafting in storage terminal grid #78

Closed theboo closed 2 years ago

theboo commented 2 years ago

Issue type:


Short description:

Any time i shift click craft stacks out of the storage terminal, the server hangs until the crafting has completed, happens both on a server and in SP. Seems very similar to issue #48

Steps to reproduce the problem:

1.Install a larger pack with lots of recipes(enigmatics 6 v0.5.26 used here, but also tested in ATM6 v1.8.20)

  1. Make a small storage network
  2. Shift click craft a stack of anything

Versions:

Profiler output:

https://spark.lucko.me/yTddKGNVRr

rubensworks commented 2 years ago

Thanks for reporting!

theboo commented 2 years ago

As a side note, ive noticed that it is not crafting the whole stack at a time as was mentioned in issue #51 , as you can see in the gif below, it sloooooowly crafts the full stack(you can see the server hanging in the background with the flashing sky). I dont know if this is related to the server hang or not, but i expect it is. In a world with just IT/ID and dependencies(so much less recipes/tags) it is much faster but still one item at a time. Changing the below config between true and false seems to not affect anything. image

https://gyazo.com/646e50f7cc0b66948d21a7ea2b894fc9

Gyazo
Gyazo
 
rubensworks commented 2 years ago

Profile screenshot for reference: Screenshot 2022-02-28 at 08 28 18

rubensworks commented 2 years ago

So apparently this was fixed in the 1.12, but the fix somehow got lost for the 1.16 update. Will be fixed in next release.

theboo commented 2 years ago

amazing, thanks!

theboo commented 2 years ago

just tested the new version, same craft that took 30+seconds of tick time in a 50 second profile took less than 1 second of tick time in the same 50 second profile. Shift click stacks craft almost instantly now. perfect! thanks again!