Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vehicles prefer one lane over the over for no apparent reason #314

Open
WildQuoll opened this issue May 13, 2019 · 7 comments
Open

Vehicles prefer one lane over the over for no apparent reason #314

WildQuoll opened this issue May 13, 2019 · 7 comments
Assignees
Labels
confirmed Represents confirmed issue or bug discussion Contains debate on certain topics DLS Dynamic Lane Selection enhancement Improve existing feature LANE ROUTING Feature: Lane arrows / connectors low priority Issue with low priority of work

Comments

@WildQuoll
Copy link

There seems to be an issue in the modified path-finding that comes with TMPE, which affects roads with 2 or more lanes in one direction.

On some junctions, it seems all vehicles prefer to enter the lane closer to them, regardless of which lane they need to be in at the next junction (see attached pictures).

This doesn't happen with the vanilla path-finding, where vehicles generally enter whichever lane they need to be right at the start.

Some examples below:
1
2
3

Note: No lane connectors nor any of the optional 'advanced AI' features are involved.

Please let me know if you need any additional information.

@CosignCosine
Copy link

CosignCosine commented May 13, 2019

In some countries, it is illegal to make the second type of turn (as it interferes with other rights of way), so it was most likely banned in the updated pathfinding for that reason. It also speeds up traffic this way (vehicles aren't crossing paths with each other).

@originalfoo
Copy link
Member

I think there's two distinct issues here:

  1. Known issue with DLS (see: Cars All Choose the Same Lane Causing Congestion #263 - Per vehicle DLS randomisation)
    • Temporary workaround: Set DLS slider to less than 50%.
  2. Pathfinder is coded in such a way to avoid crossing too many lanes when entering a road (basically what @CosignCosine said in the comment above)
    • We're pondering some sort of 'regional settings' to handle that sort of thing

(@FireController1847 can you remember where the regional settings were being discussed?)

@WildQuoll
Copy link
Author

Thanks for the replies.

I'm not using DLS at all, so I don't think the 1st issue applies here, but the 2nd point does seem to explain it.

Unfortunately, in my observation the current behaviour slows down the flow of traffic in some cases (since vehicles queue in a single lane, rather than multiple). I would have though that no extra cost for any lane when turning at junctions and some extra cost for switching lanes outside of junctions, would work just fine.

@originalfoo
Copy link
Member

originalfoo commented May 13, 2019

I would have though that no extra cost for any lane when turning at junctions and some extra cost for switching lanes outside of junctions, would work just fine.

It would, and in fact we already do that in some places - like dead-end (cul-de-sac) segments on wide roads. Problem is that if we did it on junctions lots of people would start complaining because as mentioned earlier it's illegal in many countries to do that. Hence us pondering something relating to 'regional settings'.

We could potentially add a setting to global config that allows it to be toggled? (previous commit ref, I think, is: 0cb90e3 with background infos in #101)

@WildQuoll
Copy link
Author

OK, good to know it's being considered. Looking forward to such option.

@FireController1847
Copy link
Collaborator

FireController1847 commented May 13, 2019

@aubergine10 In regards to the regional settings, I believe we had only discussed it within the Discord and did not make an actual issue for it.

@WildQuoll Take a look at this, for your second image. Just some resources that might help you understand why it was developed this way. Hopefully like aubergine10 said, we'll add regional settings that will allow things like this to be toggled. Funnily enough, I actually made an issue complaining about the exact opposite happening haha.

@FireController1847 FireController1847 added confirmed Represents confirmed issue or bug discussion Contains debate on certain topics enhancement Improve existing feature low priority Issue with low priority of work labels May 13, 2019
@FireController1847
Copy link
Collaborator

My apologies but with my recent increase in real life activities and my lack of participation in TM:PE in recent months, I think this issue would be better suited to someone else. If it's still around when I come back I'd look forward to fixing it, but for now I'm going to unassign myself. Sorry!

@FireController1847 FireController1847 removed their assignment Aug 12, 2019
@originalfoo originalfoo added LANE ROUTING Feature: Lane arrows / connectors DLS Dynamic Lane Selection labels Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed Represents confirmed issue or bug discussion Contains debate on certain topics DLS Dynamic Lane Selection enhancement Improve existing feature LANE ROUTING Feature: Lane arrows / connectors low priority Issue with low priority of work
Projects
None yet
Development

No branches or pull requests

4 participants