The International Simutrans Forum

 

Author Topic: Private cars use degraded ways when alternatives are available  (Read 233 times)

0 Members and 1 Guest are viewing this topic.

Offline Matthew

  • *
  • Posts: 547
    • Japan Railway Journal
  • Languages: EN, some ZH, DE & SQ
Private cars use degraded ways when alternatives are available
« on: January 21, 2021, 06:54:02 AM »
Severity:
Low
(But I thought now was a good time to report it since the private car path explorer code is fresh in the coders' minds.)

Example:


This screenshot from B-B shows private cars using a slow, degraded way. The degraded way is only used by southbound traffic. The convoy stats report 1 in 4 convoys using the degraded way.

Expected outcome:
All private cars use the faster way.

Possible cause:
This might be the anti-congestion element of the private car path explorer working as designed. Or it might just be a bug.

Offline freddyhayward

  • Devotee
  • *
  • Posts: 649
  • Languages: EN
Re: Private cars use degraded ways when alternatives are available
« Reply #1 on: January 21, 2021, 08:13:32 AM »
Private car routes are generally spread out because they are calculated for different cities at different times, so the alternative may have easily been more congested at the time. This is not really the intended outcome of the congestion mechanic but I don't know if much can be done about it without increasing the check frequency of the routes.

Offline Ranran

  • Devotee
  • *
  • Posts: 1478
  • Languages: ja
Re: Private cars use degraded ways when alternatives are available
« Reply #2 on: February 09, 2021, 11:05:58 AM »
I don't think this is a bug. I think it's a specification.

At least for now, even player convoys don't automatically choose faster roads.

Priority is given to routes that can go straight as long as they are passable. Because the process of searching for a route ends when the route to the first destination is found.


Ranran automatically selects different routes for going and returning. (Of course none of the roads are one-way)

This shows that the auto-determined route is neither the shortest nor the fastest.

If the player knows a detour route that can drive faster, he will usually set a waypoint there.

Quote
Expected outcome:
All private cars use the faster way.
Quote
This is not really the intended outcome of the congestion mechanic but I don't know if much can be done about it without increasing the check frequency of the routes.
I don't know much about private car routing, but does it perform advanced processing that even player convoy does not?
I think that searching for the fastest route even though it is passable will greatly increase the processing. Because there are so many possibilities in the map that you have to check them out. Even so, I think currently private car routing has a lot of performance absorbed.