MrTJP / ProjectRed

Redstone Engineering
MIT License
466 stars 178 forks source link

IC Bluprint lag #1747

Open hohserg1 opened 1 year ago

hohserg1 commented 1 year ago

Describe the bug Bluprints with large amount of wires cause lag

To Reproduce Steps to reproduce the behavior:

  1. Place new bluprint to table
  2. Redraw 32*32
  3. Place some amount of non-isolated red wires
  4. Place IO at border
  5. Take it bluprint from table
  6. Place it bluprint to table
  7. Game will freeze

If you fill all areas with wires, it will cause really long lag. Seems, its problematic code: https://github.com/MrTJP/ProjectRed/blob/1.12.x/src/mrtjp/projectred/fabrication/wiretileabstracts.scala#L302

Expected behavior Game must not freeze, calculation of blueprint must be fast

Versions Include versions of the dependencies. And since you're looking at it, make sure ProjectRed is up to date. Don't submit bugs for old versions, as they could have been fixed.

Screenshots/Videos https://youtu.be/j4qLf2S7VEI