Page 1 of 1

rail signals cause huge lags

Posted: Tue Jul 16, 2024 7:32 pm
by zggz
Every time when i place rain signal (or rail chain signal) game freeze for about 1 sec. I need thousands of them and it is ruin my game.


It is not depends when i place it manually or with bots.
It happen even when rail don't connected to main rail network
I already have about 40k of them at base
more signals at base make more lags when i place it
no mods affect on this
game version 1.1.109

save with base mod only
6x14 for report.zip
(69.98 MiB) Downloaded 18 times

fix it please.

Re: rail signals cause huge lags

Posted: Tue Jul 16, 2024 8:23 pm
by Loewchen
You have hundreds of trains without path making them all repath on any network change.

Re: rail signals cause huge lags

Posted: Wed Jul 17, 2024 6:14 am
by zggz
6x14.zip
(74.22 MiB) Downloaded 16 times
Save with all mods that i use. All trains have a path but problem still here.

Re: rail signals cause huge lags

Posted: Wed Jul 17, 2024 7:44 am
by Bilka
Congrats on building a rail network that stresses the train pathfinder. I would recommend not to do that. Try having less alternative paths for each train to take. E.g. less than 3 lanes per direction and/or don't use a rail grid.



The debug info is from the show-train-no-path-details option. The steps number should ideally be a lot lower, the default threshold for a "slow path found" is 10000. It is so high due to the high amount of possible alternative paths.

There may be some optimisation for this in 2.0.

Re: rail signals cause huge lags

Posted: Wed Jul 17, 2024 8:44 am
by zggz
thank you!

i will plan another design for my base :)