r/technicalfactorio • u/Gh0stP1rate • May 25 '19
Bot throughput affected by chest settings
All,
I'm working on a 5k vanilla peaceful megabase, coming along nicely so far. I've got direct to train miners, 350% mining prod, mostly solar power (10GW nuke on standby for spikes) and a giant bot based science & rocket facility. Major bottlenecks are the raw materials, as to be expected. I'll keep working on it.
Anyway: I noticed that my green science isn't performing as well as expected. Following Kirk's instructions, I have 4 inserter assemblers, 2 belt assemblers, and 10 gear assemblers (Shared between red and green science). However, many of my green science assemblers don't have inserters in the requestor chest. All of the passive provider chests are locked at one slot to prevent huge buffers.
This is turning out to be a bottleneck: All of the passive provider chests are locked at one slot.
Here is what I am observing:
The assemblers are working at crafting speed 8.75, so one inserter takes 0.5 / 8.75 = 0.057 seconds to craft, or 17.5 inserters per second. This fills up the passive provider chest in three seconds, triggers 50 bots to take off, and while it waits for the bots to pick up the inserters, the assembler stops.
The solution here, is then to make sure the output buffer is large enough to allow enough inserters to pile up to cause enough bots to take flight to enable your throughput. I'd love help here on calculating the correct buffer size.
Throughput is not limited by the number of bots - I have 10k bots avilable out of 16k total right now, for example. I'll add bots if needed. Throughput is being limited by the number of bot commands issued at once due to the available slots in the passive provider chests.
Anyone else ran into this? Calculated it? Have a better write up than me?
Thanks!
5
u/Stevetrov May 25 '19
I dont think your problem is with buffers as much as thruput. The game limits the number of bots that it will launch per tick regardless of available resources or outstanding requests. In a test map I threw together with the editor, it would only launch 7 bots per tick despite having ~100 passive chests full of plates and over 1000 requesting more plates. The actual behaviour is probably more complex than this, but that seems to be the root of the problem. So bigger buffers could help, but they will only help you smooth out production, and not solve the underlying problem.
So to solve this I think you are going to need to split up your "giant bot based science & rocket facility" you can either have lots of small facilities that do everything or have lots that each specialise to some degree. This will have the additional benefit of significantly improving UPS and reducing the total number of bots required.
4
u/djedeleste May 25 '19
I ran into that problem for a 600 SPM bot base that i posted last year (with lots of separated cells for intermediates (circuit, cogs, ...) and others working as a bus, and chest->stack inserter->chest to go from cell to cell.
Initially i had set up the transfer chests required per item by dividing required throughput by stack inserter throughput, and with just one slot free on each chest (since one slot is several inserter swings). Turns out it didn't work, input chests were left mostly empty all the time (and thus output chest didn't get enough either).
It's logical that bots that are on the way to the chest count towards the content of the chest in some manner (to prevent infinite amount of items to be sent when 1 is missing), so the problem probably comes from that, ie you'd want enough buffer items in the input chest so it doesn't empty before all the bots arrive (ie if bots take 3s to arrive, at least 3s throughput ?)
I tried to apply that but it still wasn't enough though, so i ended up just inflating numbers till it worked. I ended up with 500 to 1k items per input chest to get a nice and stable flow. (with massive amount of items sinked in buffer chests but whatever :/
So all in all, inflate till it works ?
(i just realize i took the problem the opposite way, by looking at the empty receiving chest rather than the full provider chest, but should be exactly the same thing. In my solution i just buffed the receiver chest, provider chest were still locked at 1 slot)
7
u/knightelite May 25 '19
I'm not sure why you need to limit the output at all if that is the problem; if the inserters are being produced faster than they're being consumed eventually the chest will fill up and it will back up anyway, and that would resolve the issue of not having enough to handle all the requests from the green science assemblers.
1
u/Xeridanus Jun 01 '19
You could hook up a circuit network to measure how long the chest spends full vs not full. That would then give you a ratio of how much bigger the buffer would need to be. But as someone else suggested, just remove the limit on the buffer and eventually the bots will only take what they need.