3 ms·
Well at the same time, Factorio teaches you that you need some buffers to build a fault tolerant factory. Factorio often has implicit buffers through its belts
by marginalia_nu 5y ago
Well at the same time, Factorio teaches you that you need some buffers to build a fault tolerant factory.
Factorio often has implicit buffers through its belts (or bot network). If you build an inserter-only factory you'll become painfully aware how important they are to to the smooth operation of the factory. Otherwise it's very easy to get rolling waves of cascading backpressure, where the entire factory is only able to produce at good efficiency as long as you have fully saturated input as well as complete consumption of every product you produce.
- dragontamer 5y agoThat's a throughput problem. Inserters have 1/20th the throughput of a belt. When you go truly just in time _WITH_ good throughput (aka: Logistic Bots), its so effective that a huge subset of the community thinks that its cheating. Leaving 1000 items on a belt (aka: a belt of length 70) is just less effective than bots flying to fetch an item _just_ when you need it. The buffer is counter-productive. ------- The only time you want to "buffer" in Factorio is to provide 12-items to stack inserters, to maximize UPS (updates per second). If your stack inserters are moving 12-items every swing, that's using less CPU power than if they're moving 6 or 5 items per swing. And as we all know: the expert's biggest problem in Factorio is when you've built such a large factory that your own CPU starts to slow down (aka: UPS problems). So buffers of size 50 come to the rescue (the smallest buffer available, and just enough to take advantage of 12-item stack inserters).
- marginalia_nu 5y agoBots still buffer items. Bot based factories produce when those buffers are low, not strictly when items are needed. A true on-demand factory would take ages to produce anything, it would basically not be much faster than handcrafting because the iron plates wouldn't start being created until the pipe is needed, and the pipe wouldn't be needed until the steam engine is needed. But it's much slower to make iron plates than pipes, and much slower to make 10 pipes than make a steam engine. Which is why you absolutely need those buffers.
- dragontamer 5y agoJust in time doesn't mean "buffer free". It means eliminating unnecessary buffers. When Ford ran out of chips (https://www.cnbc.com/2021/03/31/ford-slashes-vehicle-production-at-seven-plants-in-north-america-due-to-chip-shortage.html https://www.cnbc.com/2021/03/31/ford-slashes-vehicle-product...) because of its "just-in-time" process, Ford was able to give 2-months of notice before shutting down one of its lines. That means that Ford had a 2-month buffer __in practice__. ---------- When you go bot-based, you have full control over the size of your buffers at all steps of your Factorio design. At that point, you realize that smaller buffers are more efficient, and that larger-buffers don't do anything. Ex: if you achieve maximum throughput with buffer-size 20, you leave it at 20-sized buffers. There's no reason to buffer-up 1000x items when 20-sized buffers work out fine. --------- Belts force you to buffer everywhere... and proportionally to the size of the belt. A long belt 1000 tiles long would force you to buffer up 7000 (one side) or 14,000 items (double-sided). The size of these buffers are grossly larger than what anyone needs. The key buffer size is usually 12 (the stack-inserter's grab size). Maybe 24 or 36 so that you have enough buffering to handle 2 or 3 swings of the stack inserter in case those items don't arrive on time (bots "seemingly randomly" run out of power, from the perspective of that assembly machine)... but anything more than that is redundant. Buffer size 50 (minimum size allowed on chests) are used in practice.
- leetcrew 5y ago> Just in time doesn't mean "buffer free". It means eliminating unnecessary buffers. this is sort of tautological, or at least hinges on how you interpret "necessary". certainly no one would implement a buffer knowing at the time that it was unnecessary! but even in factorio, it can be worth maintaining a buffer deeper than what's needed to keep the factory running at 100% under optimal conditions. you don't want to find out that you're out of stone when your bots stop autoreplacing your walls and the biters flood in, or discover that you've exhausted all your uranium patches when your base goes dark. it's a real pain to reseed your kovarex enrichment in a power crisis. I usually maintain fairly deep buffers of critical defense items and monitor them periodically (or set up alarms). especially with fuel cells, I like to have at least a two hour supply, in case setting up the next mine is nontrivial. disclaimer: I have played several hundred hours of factorio, but I have never built a base so large that my PC itself became the bottleneck.