[Rseding91] [1.1.104] inserters not switching to sleep state while train is departing

Post Reply
Vega 128
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Feb 15, 2020 6:29 pm
Contact:

[Rseding91] [1.1.104] inserters not switching to sleep state while train is departing

Post by Vega 128 »

When i was trying to ups optimize a build i noticed some stack inserters (green set to 12 stack size) unloading a train not going to sleep, untill the end of the last wagon has passed the inserter.
(all observations and experiments were done with single headed trains)

Expected result:
i expected that the inserters would have gone to a sleeping state as soon as the train starts moveing, like in the case of the inserters loading a train.

Repeatability:
it seems to be a very repeatable.
all mods have been disabled and removed from the factorio mods directory.

to reproduce it in isolation i built a loop of track one load and one unload station, and the train was loaded and unloaded with infinite chests
the cargo wagons had a slot limit of 12 slots set. (so have the train load faster)
on the unloading station each wagon was unloaded by 6 stack inserters with the default stack limit of 12 .
on the loading station each wagon was loaded with fish by 6 stack inserters having a stack limit of 10.
(so there would be no inserters stuck holding a partial stack)

in the atachments i included the map on wich i recreated the observation
it was generated with the creative mode preset, the polution and cliffs have been turned off

the 2 commands that were run on the map were "/cheat"(twice) and "/editor"

Experiment results:
inserters being in a sleeping state while the train is ariving
train ariving at unloading station.jpg
train ariving at unloading station.jpg (713.88 KiB) Viewed 363 times

Once the train started to move the stack inserters closest to the trailing end of the train have entered their sleeping state
train departing unload station 1.jpg
train departing unload station 1.jpg (716.86 KiB) Viewed 363 times

As the train is departing the station more and more inserters switch to a sleeping state reducing the inerter entity time usage
train departing unload station 2.jpg
train departing unload station 2.jpg (710.4 KiB) Viewed 363 times

This behavior was not observed in case of a train being loaded
train being loaded.jpg
train being loaded.jpg (748.7 KiB) Viewed 363 times

all inserters go to sleep as soon as the train gets ready to move
train departing loading station.jpg
train departing loading station.jpg (737.05 KiB) Viewed 363 times

the log has the username of the acount changed for anonymity.
Attachments
inserter performace issue recreation.zip
(1.58 MiB) Downloaded 13 times
factorio-current.log
(5.72 KiB) Downloaded 16 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 13239
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [1.1.104] inserters not switching to sleep state while train is departing

Post by Rseding91 »

Thanks for the report. This looks like a super super old artifact from when the game was in early development that was never changed. I don't want to risk changing it for 1.1 but I will change it for 2.0 and assuming no issues are found it will be fixed in the 2.0 release.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Fixed for 2.0”