Energy conduit power distribution enhancement #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Disclaimer
I made these changes for myself and I'm opening this pull request to give you a chance to consider these changes for the mod.
I'm open to changes if those would make it better suited for the mod.
This is only lightly tested by me. (I'll be testing it in Monifactory)
Requires performance testing with large conduit networks.
Why create a pullrequest here and not enderio?
The problems I'll touch on in this request are not that big of a problem if you don't have a throughput limit.
Without the throughput limit it would require a completely different implementation, so it wouldn't be usable here.
The problem
The default implementation of the energy conduit is good enough when the conduit has infinite throughput,
but the conduits created whit this mod don't and it really shows.
The player has to manage everything about the network as it is dumb and is prone to doing dumb stuff without supervision.
Proposed Changes
When using custom conduits I replaced the logic of power distribution completely to make the network smater, the changes are the following:
Drawbacks of the algorithm implemented here
A machine with multiple connections will only use one side to extract and insert all the power that all connections can provide.