Smart cables take a while to update channel lines
Wlnfr opened this issue ยท 4 comments
Describe the bug
Smart cables' lines that update more slowly the more cables are connected. ME Chest connected to controller/energy source with 4 smart cables updates the lines immediately upon connection. ME Chest connected to the end of a cable line of around 504(shown in a screenshot) takes around 45 seconds for smart cables to get the line on them. I imagine it would take even longer to update the lines on smart cables for even larger AE networks.
To Reproduce
- Create a world.
- Place a controller/energy source.
- Make a long cable line(I tested with around a 100 cables).
- Connect any block that uses a channel to the last cable.
- Wait X seconds for the line to appear.
Note: Everything that uses a channel will work as intended if there are enough channels in the network, only the visual representation of used channels on smart cables gets updated with a delay.
Expected behavior
For smart cable lines to appear within a few seconds after connecting them.
Environment
- Environment:
Minecraft 1.16.5
Forge: 36.1.6
AE2: 8.3.1
The One Probe: 3.0.7 (used for convenience, not necessary to reproduce the bug)
Forced crashlog: https://pastebin.com/mVUyQpLT
This is by design, repathing the network takes some time and the algorithm is optimized to explore multiple parallel paths. Which usually is the most common configuration. This allows us to implement it in an easy way and spread it across multiple tocks without potentially risking an exponential cost in a single tick or otherwise strange bugs when assigning channels due to race conditions.
On the opposite this means a single long cable is the worst case in terms of how long it takes to fully repath the network.
However I don't see any change happen in the short term. As to some degree it is also a design decision to have larger networks boot slower overall.
Just to be sure, you are powering it with an creative energy cell? If not, do you have enough energycells attached? Booting and detecting the grid can take quite a peak of power and input is limited by capacity
Yes, I am powering it with creative energy cell, you can see it on second screenshot in the middle of bottom layer of controllers.
I have done some more testing, the problem seems to be with the controller. since smart cables update their channel information almost immediately after connecting ME chest to an energy cell with a ~500 long cable, while controller blacks out right after connecting the same cable to it and starts up after a few seconds. The energy levels don't drop drastically after connection, the controller just blacks out fully, like, the energy consumption drops to 0. Hope this helps.
Edit: Just to be sure I also updated forge to 36.1.16 and cycled through all AE2 versions for 1.16.5(apart from alpha1). Bug didn't change in any way.