UPS Optimization - the full belt myth

Circuit-free solutions of basic factory-design to achieve optimal item-throughput.
Involving: Belts (balancers, crossings), Inserters, Chests, Furnaces, Assembling Devices ...
Optimized production chains. Compact design.
Please provide blueprints!
Forum rules
Circuit-free solutions of basic factory-design to achieve optimal item-throughput
mmmPI
Smart Inserter
Smart Inserter
Posts: 2749
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: UPS Optimization - the full belt myth

Post by mmmPI »

disentius wrote:
Thu Apr 20, 2023 6:02 pm
It is surprisingly difficult to fill a belt without some inequalities. if anyone got a good system, please share.
I am not sure if it is appropriate for this task, but after using /editor command, you get access to an additionnal crafting menu that provide loader and infinity chest that provide a full belt. From that full belt you can use a self resetting timer couting to say 10, and allow a control belt to be active only when the timer is under 8, or 5, or 2 to choose the load. That may be not precise enough with those numbers as they are not multiple of belt speed so it create repeating pattern.




I have measured the belts throughput in the test to be around 33%, or 15 item per second, outside of the more dense area where it is around 23 item per second or 50 % throughput for that blue belt. Yet the UPS are not showing better results by the same magnitude, the not full belt may be 38% faster to update, it is carrying 66% or 50% less item.

Seeing this, i am suspecting that an empty belt would have better UPS that could be the control test :).

I have use this contraption to measure the throughput and % but i've seen better ones :

mrvn
Smart Inserter
Smart Inserter
Posts: 5709
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: UPS Optimization - the full belt myth

Post by mrvn »

Shouldn't you be testing e.g. a full red belt vs. a blue belt with the same amount of items?

A full blue belt and a partial blue belt is a meaningless comparison. In your megafactory you would need 2 partial (or 1 faster) belts to replace a full belt so the same amount of items arrives at the assemblers. Otherwise you are just showing that a smaller factory takes fewer UPS.

User avatar
disentius
Filter Inserter
Filter Inserter
Posts: 694
Joined: Fri May 12, 2017 3:17 pm
Contact:

Re: UPS Optimization - the full belt myth

Post by disentius »

that is a good idea, mrvn. But this topic is about full blue belts vs partially filled blue belts. So far, partially filled belts are lighter on ups load in my tests.

Belter
Fast Inserter
Fast Inserter
Posts: 203
Joined: Sun Mar 14, 2021 12:38 pm
Contact:

Re: UPS Optimization - the full belt myth

Post by Belter »

disentius wrote:
Fri Apr 21, 2023 2:13 pm
that is a good idea, mrvn. But this topic is about full blue belts vs partially filled blue belts. So far, partially filled belts are lighter on ups load in my tests.
Yes.. but. I think the problem with tests are the U turns. For the almost full belt much-much more items slips because of the turns, and I think that's why the UPS penalty 8%->38%. But w/o U turns we would add other components which would have bigger UPS impact than the optimized belts.

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2551
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: UPS Optimization - the full belt myth

Post by FuryoftheStars »

Doesn't the game have to still track every item on the belts? Thus, a partially full blue belt vs a fully loaded blue belt would have fewer items to track, and thus the UPS gain you're seeing?
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles

mrvn
Smart Inserter
Smart Inserter
Posts: 5709
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: UPS Optimization - the full belt myth

Post by mrvn »

FuryoftheStars wrote:
Fri Apr 21, 2023 5:38 pm
Doesn't the game have to still track every item on the belts? Thus, a partially full blue belt vs a fully loaded blue belt would have fewer items to track, and thus the UPS gain you're seeing?
No. The way the devs described it the game tracks spans of identical items without gaps. They optimized it explicitly so they don't have to track each item every tick. You can turn on the spans and gaps of items on a belt in the debug settings to see how it groups stuff.

The thing is that spans of items aren't infinite and items have to cross boundaries. So my feeling is that with a full belt that's just going in a circle all the UPS time is spend on items crossing boundaries and a full belt simply has more items. With inserters taking items off or putting items on the cost might be totally different.

Has anyone compared the time per item for the belts? Because that would be a useful number I think. Comparing a belt loop with 1000 items v.s 800 items makes imho no sense.

mmmPI
Smart Inserter
Smart Inserter
Posts: 2749
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: UPS Optimization - the full belt myth

Post by mmmPI »

To me if you want to know the difference of ups between a full belt and a non-full belt, you have to measure a full belt, and a non full belt there's no way around it.

If you want to be more precise, you need to then divide the difference by the number of items so that the UPS becomes "per item".

If you don't measure the difference between 800 item loop and 1000 item loop, how can you get the " the time per item for the belts ?"

The question is about full belt vs not full belt which one is the most efficient in terms of raw UPS. In order to avoid the 0 item belt winning because that is not a helpful result, you need to account for the difference in number of item in the 2 belts measured, to answer the question : is it really better to use fully compressed belt as much as possible ?

In such case, the fact that one loop has 0 or 400 or 800 item does matter, because if your tested non-full belt has 40% or 80% of the item, you would need to use 2.5 times more of them or 25% more of them to achieve the same result of "x item moved". Hence potentially reducing the "ups gain for the total number of item carried".

Post Reply

Return to “Mechanical Throughput Magic (circuit-free)”