4 ms·
Anyone who has played Factorio knows that "just in time" is far superior to actually holding reserves. If you buffer things up, you don't know where the problem
by dragontamer 5y ago
Anyone who has played Factorio knows that "just in time" is far superior to actually holding reserves. If you buffer things up, you don't know where the problems in your production are.
People are saying "why didn't we buffer up more" ? Well, there we go. Play Factorio. You'll see just how bad buffers are in a simulated factory.
- dpcx 5y agoI haven't played Factorio, so maybe I'm missing something... but if you don't have buffers and suddenly whatever that produces something essentially goes away, what happens to all your just in time pieces? Seems pretty certain that they'll all end up idle.
- dragontamer 5y agoYes. Iron mines run out in Factorio. That then causes the player to search for new sources of iron to fix your supply chain issue. ----------- In contrast, if you buffered up... you end up running out of Iron 10 hours ago. Then your buffers deplete and you're back in the same position, except you've built out your supply chain to be even more fragile than before (because you had an additional 10 hours of expansion).
- ravel-bar-foo 5y agoThat's because you're not setting up alerts to warn you when your buffers are depleting. In a simple system like Factorio, adding a buffer to catch oversupply should never stop production more than not having a buffer at all. (A related problem in Factorio is that the available buffers tend to fill themselves based on the topology of the belt network rather than actual oversupply, and then tend to not empty into where they are needed until the logistics network is developed. In the real world there are price signals and communication between factories, so supplies are not allocated to factories on a first-come first-serve basis (inserters serving themselves).
- dragontamer 5y ago> to catch oversupply What oversupply? Every chip that was allocated to cars has been used to make more cars. Saving up more chips in 2020, 2019, or 2018 would have only resulted in fewer cars being built compared to today.
- bhelkey 5y ago> People are saying "why didn't we buffer up more" ? Well, there we go. Play Factorio. You'll see just how bad buffers are in a simulated factory. A shortage in real life causes critical issues for real people. A shortage in Factorio does not.
- dragontamer 5y ago> A shortage in real life causes critical issues for real people. A shortage in Factorio does not. An iron shortage in Factorio causes my iron plates to run out. My iron plates feed the steel furnaces. The steel furnaces build ammo. My ammo is automatically belted to my defensive garrisons. Then the bugs completely wipe out my base, because I was out of ammo. Going backwards: Understanding why I'm out of ammo requires me to understand why I'm out of steel, which requires me to understand why I'm out of iron, which requires me to walk over to the mines and realize the mine is out. ---- Now lets see what happens with buffers. Understanding why I'm out of ammo: wait, I'm not out of ammo. I've got thousands of ammo buffered up right now. As such, I don't fix the problem for 2 or 3 hours. 2 or 3 hours later: my ammo runs out. I then begin the process of figuring out that I'm out of iron. When you have buffers, its hard to tell where your bottlenecks are: buffers make it _seem_ like you have plenty of supply, when in reality, the iron mine ran out a long time ago. ------ Now look at real life. The same thing happens. Toyota had a large buffer of critical chips so that it could feed its factory for months after the chip shortage started (https://www.reuters.com/article/us-japan-fukushima-anniversary-toyota-in/how-toyota-thrives-when-the-chips-are-down-idUSKBN2B1005 https://www.reuters.com/article/us-japan-fukushima-anniversa...). Oh right. Lol, guess what? Woops, Toyota has run out of chips (https://www.nytimes.com/2021/09/10/business/toyota-production-chip-shortage.html https://www.nytimes.com/2021/09/10/business/toyota-productio...)
- bhelkey 5y ago> Now lets see what happens with buffers. > Understanding why I'm out of ammo: wait, I'm not out of ammo. I've got thousands of ammo buffered up right now. As such, I don't fix the problem for 2 or 3 hours. We don't live in a centrally planned (by a single person) economy where companies are run by simple automation. Companies are run by people. These people notice when their suppliers are disrupted. They notice when they can't refill their buffers even before the buffers run out. And suppliers of raw materials certainly notice raw material shortages. We didn't find out about the chip shortage from the article you linked when Toyota's buffer of chips ran out.
- marginalia_nu 5y agoWell 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.
- 5y ago
- zelias 5y agothis only works if you can successfully keep the biters out
- dragontamer 5y agoIt only takes like 2 hits for a biter to destroy your chests (aka: buffers) and everything inside of them. If anything, buffer-free is more resilient than buffers when we think of the biter attacks. But this is a "gamey" aspect of the game. Not really representative of real life. (Its not like the items inside of a real-life warehouse just disappear into /dev/null under random circumstances)
- leoc 5y agohttps://darrellmann.com/dodo-lean/ https://darrellmann.com/dodo-lean/ seems relevant.
- unethical_ban 5y agoIn real life, one could build dashboards to measure and alert on rates of buffer depletion to anticipate and fix bottlenecks before the buffer runs out. In factorio, setting up some cable, chest readers and an alarm - but Factorio unmodded can't alert on rate of chest depletion IIRC.
- dragontamer 5y ago> In factorio, setting up some cable, chest readers and an alarm - but Factorio unmodded can't alert on rate of chest depletion IIRC. Unmodded can do it for sure. All you need is a clock and a divisor circuit. Clock circuits are a constant circuit (+1) applied to a flip-flop, so that the flip-flop counts +1 per tick. (+60 per second). With a second flip-flop circuit, you can read-and-save the looping time. You subtract the saved time from the current clock to see how much time has passed. You have a 3rd flip-flop save the value of the chest, and calculate (chest - (flip-flop of chest) / (current-clock - saved-clock)). Blast that value onto a decider circuit (X > Y) hooked up to a simple alarm. Bam. Fully vanilla factorio solution. ----------- I may have played this game too long...
- mindslight 5y agoJust as anyone who has played Sim City 2000 knows that Los Angeles sprawl is far superior to living in a city </s>.
- dragontamer 5y agoI'm not proposing we cut off Hospital / school funding to make our mega-dense utopia with maximum tax $$$$ per population here. (Yes, I too have played lots of Sim City. I'm well aware of the unrealistic corners of the game). I'm simply pointing out that Factorio has a factory-like system that has the "buffering" problem innate to the game mechanics. As far as I can tell, the problem of buffering in real life is closely modeled by Factorio correctly. Sim City is on the unrealistic side. But Factorio / Hearts of Iron / OpenTTD seem to do a good job of making the "real world issues translate well into a game". I think most people would benefit if they played those games and learned from them.
- mindslight 5y agoI'm making the general point that results from optimizing for any model are going to depend entirely on the assumptions baked into the model. I haven't played Factorio, but based on your description it sounds like it leaves out price signals because the player has omniscience. If a supply chain is directed by a centralized entity, then yes, keeping intermediate inventory doesn't do much. But our actual economy is based on distributed decision making coordinating through price signals. And so what inventory buffers allow a company to do is see that an in/out buffer is getting depleted, and then gradually raise bids/prices to compensate. FWIW I think there's way too much discussion focus on the keeping of inventory, as it is just one of many ways that the system can have slack. Things like having some extra machinery so it's not all running 24/7, having enough employees so that there is no overtime on a regular week, or treating your employees well so that they'll go the extra mile - these are all ways that production can be ramped up quickly when needed, that don't exist if a business is trying to optimize every last bit of short term profit. I agree that more people should learn system dynamics and modeling though, whether through games or otherwise.
- 5y ago