Page 30 of 36

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Sun May 19, 2019 9:02 am
by hansjoachim
SkiCarver wrote:
Sun May 19, 2019 8:43 am
Similar to some of the designs posted, but it works well.
I have seen that multiple times before.
Works ok but you should preferably keep turnarounds out of the intersection, atleast in busy areas

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Sun May 19, 2019 9:40 am
by SkiCarver
I have looked throughout this threat and it does not appear. As I say, similar, but not the same... Also, there is no roundabout in these junctions. left, forward and right only.

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Mon May 20, 2019 10:47 am
by mrvn
I think you can move the rail signal at the exit points one step inward. There is no gain of the extra chain signal.

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Mon May 20, 2019 11:14 am
by SkiCarver
mrvn wrote:
Mon May 20, 2019 10:47 am
I think you can move the rail signal at the exit points one step inward. There is no gain of the extra chain signal.
Thanks, but I just checked and they cannot move inward - invalid position.

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Mon May 20, 2019 12:49 pm
by mrvn
SkiCarver wrote:
Mon May 20, 2019 11:14 am
mrvn wrote:
Mon May 20, 2019 10:47 am
I think you can move the rail signal at the exit points one step inward. There is no gain of the extra chain signal.
Thanks, but I just checked and they cannot move inward - invalid position.
You have chain signals there, at least on the 4 lane version, so the position is valid. Simply replace them with rail signals.

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Mon May 20, 2019 12:55 pm
by SkiCarver
mrvn wrote:
Mon May 20, 2019 12:49 pm
SkiCarver wrote:
Mon May 20, 2019 11:14 am
mrvn wrote:
Mon May 20, 2019 10:47 am
I think you can move the rail signal at the exit points one step inward. There is no gain of the extra chain signal.
Thanks, but I just checked and they cannot move inward - invalid position.
You have chain signals there, at least on the 4 lane version, so the position is valid. Simply replace them with rail signals.
I think perhaps I am not understanding you. I have rail signals on the exits and chains signals on the entrances to the junction. This is how it need to be for the junction to work.

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Mon May 20, 2019 12:58 pm
by mrvn
SkiCarver wrote:
Mon May 20, 2019 12:55 pm
mrvn wrote:
Mon May 20, 2019 12:49 pm
SkiCarver wrote:
Mon May 20, 2019 11:14 am
mrvn wrote:
Mon May 20, 2019 10:47 am
I think you can move the rail signal at the exit points one step inward. There is no gain of the extra chain signal.
Thanks, but I just checked and they cannot move inward - invalid position.
You have chain signals there, at least on the 4 lane version, so the position is valid. Simply replace them with rail signals.
I think perhaps I am not understanding you. I have rail signals on the exits and chains signals on the entrances to the junction. This is how it need to be for the junction to work.
At the exit where the last 2 rails merge you have chain signals before the merge and a rail signal after the merge. You can replace that by 2 rail signals before the merge and none after.

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Mon May 20, 2019 1:07 pm
by SkiCarver
mrvn wrote:
Mon May 20, 2019 12:58 pm
SkiCarver wrote:
Mon May 20, 2019 12:55 pm
mrvn wrote:
Mon May 20, 2019 12:49 pm
SkiCarver wrote:
Mon May 20, 2019 11:14 am
mrvn wrote:
Mon May 20, 2019 10:47 am
I think you can move the rail signal at the exit points one step inward. There is no gain of the extra chain signal.
Thanks, but I just checked and they cannot move inward - invalid position.
You have chain signals there, at least on the 4 lane version, so the position is valid. Simply replace them with rail signals.
I think perhaps I am not understanding you. I have rail signals on the exits and chains signals on the entrances to the junction. This is how it need to be for the junction to work.
At the exit where the last 2 rails merge you have chain signals before the merge and a rail signal after the merge. You can replace that by 2 rail signals before the merge and none after.
Ahh, I am with you now and yes, I could do that. thanks.

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Mon Jun 03, 2019 2:40 am
by pallrider
I have created a "compact" 2 lane intersection designed for 2+8 trains (actually, it was originally 3+8). I wanted it to take up less horizontal and vertical space than some other designs. It is supposed to be symmetric (though this may not be totally true anymore).

The way I use it is as a mainline intersection, with my resource sinks on the north and south, and mainline running east-west. It has less buffers than the ideal intersection, but it still doesn't perform at the level that I was hoping. The main issue (for my use) is that the east-traffic is constrained.

Could anyone provide feedback on this intersection? Is there some basic things that I could improve before I start investigating circuit logic?
Blueprint

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Mon Jun 03, 2019 3:35 pm
by hansjoachim
Hey, I have looked at it
There is one major throughput limiter and that is in the center for all 4 straight paths.
In circle 1 straight driving trains have to wait for potentially 4 different trains to pass. Therefore they can only pass every fifth time on average with heavy load.
If you were to make 4 buffer, marked red, straight driving trains would only have to wait for potentially 2 trains a time, almost doubling throughput for straight driving trains.

Trains driving left have a similar issue in circle 2 where they have to wait for potentially three other trains before driving. A buffer there would increase throughput.
You could remove the buffers marked with green for straight driving trains if you want to save space. It will affect throughput, but shouldn't effect it too much.

If you want I can make a version with the changes and show a throughput comparison.

Edit: This intersection would drastically improve throughput, especially straight through traffic, at about the same size:
https://pastebin.com/phGeh5yr

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Tue Jun 04, 2019 1:03 pm
by pallrider
Thanks for that blueprint, I get it showing about 50 trains per minute vs the 36 that I was getting on the other one. That is a really nice increase, thanks. I'll continue working on mine too. Thanks for your feedback, that was really useful.

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Thu Jun 06, 2019 6:58 am
by pallrider
@hansjoachim, I really like your intersection that you suggested, but I really needed it to fit in the same footprint as my intersection, so I modified it to fit
Screen Shot 2019-06-06 at 4.53.23 pm.png
Screen Shot 2019-06-06 at 4.53.23 pm.png (1.16 MiB) Viewed 6467 times

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Thu Jun 06, 2019 2:20 pm
by hansjoachim
Cool, I like it!
There are two change I want to make.
Trains from three or more lanes should merge in the same block. The current merger favors right turns, also throughput of the merger is higher if they merge in the same block. Moving right turns looks the easiest.

Second is adding chain signals here at the red marks
Because that would allow trains to go into the other waiting bay if they firstly tried to go into a full one.

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Wed Jun 12, 2019 6:23 am
by pallrider
Great feedback. Here is the updated version
Screen Shot 2019-06-12 at 4.22.06 pm.png
Screen Shot 2019-06-12 at 4.22.06 pm.png (1.62 MiB) Viewed 6328 times

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Wed Jun 12, 2019 6:31 am
by pallrider
I've also been working on a larger intersection that tries to make as much use of parallel lanes as possible. I'm not really comparing to other intersections directly (since I have changed my train config): but I was able to get a score of 81 when using nuclear powered 3-7 trains.

The main bottleneck is now at the merge outlet. Any feedback that anyone has on improving that would be appreciated.
Screen Shot 2019-06-12 at 4.30.16 pm.png
Screen Shot 2019-06-12 at 4.30.16 pm.png (633.43 KiB) Viewed 6326 times

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Wed Jun 12, 2019 9:11 pm
by hansjoachim
The copy blueprint isn't working. The first intersection looks really good now!

On the second, three lanes parallel one.
Merging is a bottleneck no doubt.
I got a combinator based merger you could try.
Its in my signatur.

I have two changes
Cutting the extra right turn waiting bays. They just makes merging harder. The point of having three lanes is to improve throughput in the intersection. Right turns aren't intersecting with anything so they don't need more lanes.
They only works as waiting area and hardly improves throughput.

The Yellow lines. They might reduce throughput in the intersection but the merger is the bottleneck so they will probably not effect throughput. The change will reduce rails used and make merging all the rails easier. It would have to be tested.

How does it compare to the other intersection? they have the same car length so they should be easy to compare.

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Fri Jun 14, 2019 9:26 am
by vanatteveldt
This might be patched really quickly, but it must be possible to use this 'feature' to improve intersections quite dramatically, no?

https://www.reddit.com/r/factorio/comme ... on_design/

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Fri Jun 14, 2019 9:36 am
by hansjoachim
It can drastically improve small intersection, but in mine intersection and some others the limitation of throughput is merging lanes.
I consider using this as cheating and taking away challenge.

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Fri Jun 14, 2019 10:37 am
by vanatteveldt
hansjoachim wrote:
Fri Jun 14, 2019 9:36 am
It can drastically improve small intersection, but in mine intersection and some others the limitation of throughput is merging lanes.
I consider using this as cheating and taking away challenge.
Yeah it would be more of a gimmick / proof of concept. But in a way you can see this as a railway bridge, just imagine the S-piece being elevated :)

Re: 4-way intersections: Throughput and deadlocks [image heavy]

Posted: Fri Jun 14, 2019 10:49 am
by hansjoachim
Yeah it looks like multiple levels.
But if factorio where to include bridges and make making high throughput networks easier, there should be some drawbacks like in OpenTTD where curves and bridges slows down trains significantly.