[14.22] Stopped trains still pathfind
Posted: Fri Apr 07, 2017 9:22 am
It seems that trains that are stopped at red signals and have no way of progressing still update their paths.
The attached save contains a couple of examples created to show this, just turn on show_rail_paths to see the path changes. The combinators change which path is available every 5 sec or so and the trains update accordingly.
I'm guessing that the only result of this behaviour is wasted CPU time as the trains will recalculate their paths anyway when the signal turns green. However if there is some kind of shared path-finding budget (I'm thinking there is not, but still) it should really be looked at.
The attached save contains a couple of examples created to show this, just turn on show_rail_paths to see the path changes. The combinators change which path is available every 5 sec or so and the trains update accordingly.
I'm guessing that the only result of this behaviour is wasted CPU time as the trains will recalculate their paths anyway when the signal turns green. However if there is some kind of shared path-finding budget (I'm thinking there is not, but still) it should really be looked at.