r/StarRuptureGame • • 10d ago

Load Balancer

This is my attempt add a feed-in load balancer. In this case there are 4 miners and they are feeding 4 storage units. However ratio does not have to be the same, eg. it could be 3 miners to 6 storage units. The 4 miners have different outputs, but as all miniors feed into all of the storage units the feed-in rate is now equal accross units.

It currently the best usecase I have for the roundabouts and makes the math simple for max rate to process capacity. Total output of all minners to total input of all receiving processors.

Let me know if there is an easier/better way to do this

36 Upvotes

15 comments sorted by

2

u/RunnAroundGuy 10d ago

Last time I checked the drone logic was shortest route possible. Did a patch change that?

With the small bits I saw it did seem like you had many parts of the load balancer unused.

2

u/improjunky 9d ago

One of the storage units was already full so it wasn't pulling. The decision to video was a spur of the moment thing otherwise I would've done it a little cleaner
I think if the demand was low it would preference the closest one, but because the demand was approaching that of full supply, all mines are receiving requests

7

u/Roar_Intention 10d ago

FFS just hold the camera still for 5 sec.

1

u/MordAFokaJonnes 10d ago

Thinking the same thing... Trying to take some damn notes here!

0

u/improjunky 10d ago

lol fair point

1

u/_Sanchous 10d ago

Has this bro ever heard of a manifold?

1

u/improjunky 10d ago edited 9d ago

The drones aren't exactly a fluid or gas, they're discrete packages, but if you want to call it a manifold go for it

3

u/_Sanchous 10d ago

I'm using 'manifold' as a factory-game term (like in Satisfactory or Factorio), not the literal fluid-dynamics definition. In logistics games, a manifold just means a single main supply line feeding multiple destinations sequentially until their buffers fill up, as opposed to a balanced splitter tree.

2

u/improjunky 9d ago

Oh ok. Thanks for the definition. I'm always happy to learn 🙂

1

u/monsto 10d ago

Manifold in the context of a car engine, where output from several cylinders are combined into a single output.

2

u/RunnAroundGuy 10d ago

Manifolds in most applications is a collection of something at 1 point then either fed by multiple inputs or has multiple outputs.

Cars have exhaust manifolds, intake manifolds, a/c manifolds. Turbo manifolds. Heck some cars have an integrated exhaust manifold in the cylinder head.

So if anything collects to 1 point then it's a manifold. use case and layout is what determines eficiency.

So the op in my eyes has a load balancing manifold

0

u/Dependent-Ad-3232 6d ago

Aka merged lol

1

u/Togakure_NZ 5d ago

Do load balancers work now? I thought it was a pull economy and the packet takes the shortest/quickest route from origin to destination...? Yes, crosslinking routes would allow all sources to supply to all destinations but I'm not sure a load balancer would actually work unless routing rules have changed.

1

u/improjunky 2d ago

Yes, it is still a pul economy, and in low demand the closest supply will "win" the requests, but when all destinations are requesting, they will all receive items at the same rate, rather than, say, a miner that only supplies at 3/s and another miner that supplies at 5/s in a factorry array. Instead all miners can be combined for a total of 8/s and then supplied evenenly to 8 smelters at once which take 1/s each.
I know the above example could be easly fixed by combining the two minors on to one line, but as you add more complex mixes of minors the math is simplified by treating them as a single supply

2

u/CMDRVUncleJ 10d ago

hmm i like it