Hemiptera Bugtracker at bugs.linux-forks.de

advtrains

Forced dtime causing ATC delay

Send replies to 135@bugs.linux-forks.de or using the Form below.
avatar From: OP
Sat, 30 Nov 2019 07:35:01 -0000

The current dtime setting forces dtime to be smaller or equal to 0.2.

This can cause the following problem for stations with timing systems:

1. Forced dtime causes train to depart late;

2. Train arrives late at the next station;

3. Train misses the departure time and has to depart at the next cycle;

4. The following train has to wait outside the station becuase of the

delay;

5. ...

avatar From: Someone else
Sat, 30 Nov 2019 15:03:01 -0000

FYI: I have noticed similar problems that are caused by the desyncronization of advtrains dtime. Trains that leave on time arrive the stations at different times.

avatar From: Developer
Mon, 02 Dec 2019 06:56:01 -0000

The dtime clipping check is present since the very beginning. It was

originally introduced to prevent trains from doing weird things (like

moving too far in a single simulation step) if dtime should ever go

unreasonably high. At that time, 0.2s was a reasonable limit since I

never imagined at that time that there would be thousands of trains in a

single world and the limit could become a problem in regular operation.

Raising the limit could, however, cause possibly unwanted side effects,

and needs to be tested.

avatar From: OP
Mon, 02 Dec 2019 08:39:01 -0000

I understand the problem related to raising the limit. However, is there any proof that it's the best case to use 0.2s as dtime limit?

avatar From: OP
Mon, 02 Dec 2019 17:56:01 -0000

A bit of calculation gave me the results that I wrote on LinuxWorks Minetest Server Wiki: https://wiki.linux-forks.de/mediawiki/index.php/Talk:Lag

avatar From: Someone else
Wed, 18 Dec 2019 16:07:01 -0000

The bug will be fixed along #137, and the current branch that fixes the two bugs (branch h137) is now stable.

avatar From: OP
Wed, 18 Dec 2019 16:09:01 -0000

%close

avatar From: Someone else
Mon, 03 Jul 2023 07:38:01 -0000

avatar Status Update
Sat, 20 Feb 2021 09:04:01 -0000
This bug was closed.
Reply