[0.9.4] inserter doesn't make use of its full stack bonus
Posted: Sat Mar 22, 2014 9:56 pm
consider this setup

A is a smart inserter that insert copper
B is a smart inserter that insert iron
C is a fast inserter
overall this setup is mediated by the chest: if less than 100 copper is in the requester chest, inserter A moves copper in. if less than 100 iron is present, inserter B moves iron in.
they move one item at a time, so the blue inserter should be able, having stack bonus +1, to move all item to the requester chest.
what actually happens is: inserter C moves all of the first item in the chest - say copper.
as it move item faster, eventually reach 0 copper. at this time, it picks up the last copper, but iron is in the second slot.
while it move the copper, inserter A insert 1 copper.
at this point inserter C get back, see 1 copper in the first chest slot, and picks that up.
eventually, iron accumulates as C can't never get to the bottom of the copper pile, preferring moving one copper from the first slot instead of two irons from the second slot.
could it be made so that if first pickable slot has less than inserter size bonus, it moves a subsequent slot instead, without killing performances to much?

A is a smart inserter that insert copper
B is a smart inserter that insert iron
C is a fast inserter
overall this setup is mediated by the chest: if less than 100 copper is in the requester chest, inserter A moves copper in. if less than 100 iron is present, inserter B moves iron in.
they move one item at a time, so the blue inserter should be able, having stack bonus +1, to move all item to the requester chest.
what actually happens is: inserter C moves all of the first item in the chest - say copper.
as it move item faster, eventually reach 0 copper. at this time, it picks up the last copper, but iron is in the second slot.
while it move the copper, inserter A insert 1 copper.
at this point inserter C get back, see 1 copper in the first chest slot, and picks that up.
eventually, iron accumulates as C can't never get to the bottom of the copper pile, preferring moving one copper from the first slot instead of two irons from the second slot.
could it be made so that if first pickable slot has less than inserter size bonus, it moves a subsequent slot instead, without killing performances to much?