GregTechCEu Modern

GregTechCEu Modern

6M Downloads

Machine with inputs for a recipe but too low voltage causes massive lag

Closed this issue ยท 3 comments

commented

Checked for existing issues

  • I have checked for existing issues, and have found none.

Tested latest version

  • I have checked that this occurs on the latest version.

GregTech CEu Version

7.1.4

Minecraft Version

1.20.1 Forge

Recipe Viewer Installed

EMI

Environment

Singleplayer

Cross-Mod Interaction

Yes

Other Installed Mods

Sky of Grind

Expected Behavior

Machines at different voltage tiers connected by buffers will not run recipes higher than their voltage tier and not affect TPS.

Actual Behavior

While the machine with the correct voltage tier runs the recipe, all of the connected machines at the lower voltage tier will not run, yet consume an enormous amount of TPS.

Steps to Reproduce

  1. connect multiple machines to one pattern buffer
  2. have one machine at a higher voltage tier than the others (buffer machine at UV, proxies at ZPM)
  3. Run a recipe at the highest available voltage tier
  4. TPS should drop significantly.

Additional Information

https://spark.lucko.me/5iLT6x1qbw

commented

UPDATE: this seems to be the reason all those pattern buffers lag. It's down to machines with inputs in them for a recipe, but no access to the voltage of that recipe (see input bus for HV recipe, but MV energy hatch, causing mass checks).

Image
commented

It seems that the recipe checking just happens continually from the RecipeLogic.serverTick, and (my assumption is) since it can find the recipe (but not complete it) it doesn't stop searching / stall