Page 1 of 1

[1.1.110] Train pathing taking a long time / Causing lag?

Posted: Sat Oct 19, 2024 8:25 am
by Locane
I've never built a train block base before; this is my first time. I'm finding it to be in general not worth it - there's too many problems with stopped trains, fuel issues, intersection problems, one signal is missing, etc.

The save we have is SE + K2, and I've got a massive train network of intersections with all-left-turns to help prevent train lockups; just recently it started taking a really long time to calculate train pathing for some reason - this happens intermittently:

Image

The total Trains value reaches 10-11 sometimes, then falls back down to 1 / 1.2 and is fine for awhile, then spikes again. This is a dedicated server hosted at Bisect.

I have a ton of trains and a ton of track, but I'm not sure what changed all of a sudden to cause this much lag?

Save:
https://drive.google.com/file/d/186KPnV ... sp=sharing

Re: [1.1.110] Train pathing taking a long time / Causing lag?

Posted: Sat Oct 19, 2024 8:52 am
by Locane
Server stats:
Image

Re: [1.1.110] Train pathing taking a long time / Causing lag?

Posted: Sat Oct 19, 2024 9:14 am
by Locane
I think I found the problem, and I think this might be a bug involved with how trains decide which stop to go to - I have a train sitting at one stop set to "Inactivity 5" which is constantly refreshing because it's getting single ore globs, and another station is set to max train 1, and this train is flickering between the choices for it.

I'm not totally sure what's causing this, but reviewing all my copper stops and limiting them to 1 train makes it more clear where a train should go, and that helped a lot.

https://www.youtube.com/watch?v=W5x5w0Ncmyw

Re: [1.1.110] Train pathing taking a long time / Causing lag?

Posted: Sat Oct 19, 2024 9:43 am
by Nosferatu
Don't disable stations. Disabling causes all trains enroute to instantly stop and repath.
Set them to max trains zero instead.