Page 1 of 1

UPS friendly green chips?

Posted: Wed Jan 23, 2019 6:17 pm
by AngledLuffa
What is a UPS efficient layout for green chips? Either bots or belts would be welcome. I've been putting 2 wire assemblers and 2 green chip assemblers in a 4x8 rectangle of beacons. The wire assemblers are fast enough to keep up with the chips, and the chip assemblers are 5.5 speed (+340%). I think there must be a better layout, though, as a normal box of 12 beacons with 4 prod modules gives a speed of 8. I was guessing that a 12 beacon layout would actually be worse for UPS, though, as then the wire would either need bots or belts for transport.

Image

Re: UPS friendly green chips?

Posted: Wed Jan 23, 2019 6:39 pm
by DaveMcW
You can fit 11 beacons with direct insertion.

11-beacons.jpg
11-beacons.jpg (232.88 KiB) Viewed 8043 times

Re: UPS friendly green chips?

Posted: Wed Jan 23, 2019 7:00 pm
by AngledLuffa
Very nice, thank you!

Re: UPS friendly green chips?

Posted: Wed Jan 23, 2019 8:48 pm
by AngledLuffa
From a UPS perspective, do you know which of the following three are best?

- green chip assembler occasionally turns off because of not enough wire (the image shown)
- replace prod module with speed in the wire assembler
- remove one beacon near the green chip assembler

The green chip assembler has a speed of 7.375, but its effective speed is 6.883 because of how much wire it gets.

Re: UPS friendly green chips?

Posted: Wed Jan 23, 2019 9:47 pm
by Jap2.0
AngledLuffa wrote: Wed Jan 23, 2019 8:48 pm From a UPS perspective, do you know which of the following three are best?

- green chip assembler occasionally turns off because of not enough wire (the image shown)
- replace prod module with speed in the wire assembler
- remove one beacon near the green chip assembler

The green chip assembler has a speed of 7.375, but its effective speed is 6.883 because of how much wire it gets.
The type of module should not affect UPS, I believe entities sleeping is pretty good (it's definitely not worse), and I think beacons have next to no UPS impact as well.

In conclusion, to the best of my knowledge, whichever produces the most green circuits.*

*But it's more complicated because replacing productivity with speed would increase your resource costs and hence the scale of your mining, smelting, and transportation infrastructure...

Re: UPS friendly green chips?

Posted: Wed Jan 23, 2019 10:01 pm
by AngledLuffa
Indeed, I was wondering whether it is worth it to get full power out of the green chip assembler at the cost of flying around 20% more copper plates :)

Re: UPS friendly green chips?

Posted: Thu Jan 24, 2019 7:48 pm
by disentius
Good excuse to finally try out factorio benchmarking...
Tested 2 setups. both built on the same empty map with the same settings.
They produce the same (12.5K per minute)

Setup 1:
-fully beaconed
-Copper wire with belts
12k green-hybrid-setup.png
12k green-hybrid-setup.png (2.23 MiB) Viewed 7964 times
Results:

Performed 600000 updates in 48127.782 ms
avg: 0.080 ms, min: 0.061 ms, max: 0.348 ms
checksum: 1649213351
59.183 Goodbye

Performed 600000 updates in 48264.212 ms
avg: 0.080 ms, min: 0.061 ms, max: 0.386 ms
checksum: 1649213351
59.116 Goodbye

Performed 600000 updates in 48209.047 ms
avg: 0.080 ms, min: 0.061 ms, max: 0.379 ms
checksum: 1649213351
60.901 Goodbye


Setup 2:
-fully beaconed
-full robot setup

12k green-robot-setup.png
12k green-robot-setup.png (2.91 MiB) Viewed 7963 times
Result:

Performed 600000 updates in 50863.923 ms
avg: 0.085 ms, min: 0.063 ms, max: 0.328 ms
checksum: 1216465678
61.699 Goodbye

Performed 600000 updates in 50546.559 ms
avg: 0.084 ms, min: 0.063 ms, max: 0.323 ms
checksum: 1216465678
61.607 Goodbye

Performed 600000 updates in 50693.630 ms
avg: 0.084 ms, min: 0.063 ms, max: 0.315 ms
checksum: 1216465678
61.564 Goodbye


System setup:
0.009 System info: [CPU: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz, 6 cores, RAM: 4830/16295 MB, page: 6845/18727 MB, virtual: 4252/134217727 MB, extended virtual: 0 MB]
0.010 Display options: [FullScreen: 0] [VSync: 0] [UIScale: system (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
0.016 Available display adapters: 3
0.016 [0]: \\.\DISPLAY1 - AMD Radeon R9 200 Series {0x80005, [0,0], 2560x1440, 32bit, 60Hz}

Re: UPS friendly green chips?

Posted: Thu Jan 24, 2019 10:35 pm
by AngledLuffa
Neat! Can I ask what you use to do this testing? I would gladly stress test some of my own layouts if I had a good setup for it. I was thinking that god mode wouldn't quite work as it would easily do 60ups the entire way, but it seems you are not going that fast. How did you accomplish that without spamming the same layout over and over?

My initial suspicion is that both a direct insertion bot layout and a direct insertion belt layout will do better than the two layouts you showed, but I'd love to experiment on that myself.

Re: UPS friendly green chips?

Posted: Thu Jan 24, 2019 10:40 pm
by Jap2.0
AngledLuffa wrote: Thu Jan 24, 2019 10:35 pm Neat! Can I ask what you use to do this testing? I would gladly stress test some of my own layouts if I had a good setup for it. I was thinking that god mode wouldn't quite work as it would easily do 60ups the entire way, but it seems you are not going that fast. How did you accomplish that without spamming the same layout over and over?

My initial suspicion is that both a direct insertion bot layout and a direct insertion belt layout will do better than the two layouts you showed, but I'd love to experiment on that myself.
I'm not entirely sure if it's what he used, but there's some command line stuff you can do.

Re: UPS friendly green chips?

Posted: Thu Jan 24, 2019 11:00 pm
by AngledLuffa
So this should work?

- build a design in sandbox mode, save it
- run from the command line with -benchmark FILE -benchmark-ticks N

Re: UPS friendly green chips?

Posted: Fri Jan 25, 2019 1:18 pm
by disentius
@Jap 2.0: yep.

Like this:(windows)

"D:\games\Factorio_16_standalone\bin\x64\Factorio.exe" --mod-directory "D:\games\Factorio_16_standalone\mods" --disable-audio --benchmark "bench_save.zip" --benchmark-ticks 600000 >> "D:\games\Factorio_16_standalone\benchmark.log" 2>&1

Last part generates output logfile in the main factorio directory.

Re: UPS friendly green chips?

Posted: Fri Jan 25, 2019 2:21 pm
by disentius
direct insertion bot layout:
(Same throughput greens)

Performed 600000 updates in 40437.798 ms
avg: 0.067 ms, min: 0.047 ms, max: 0.283 ms
checksum: 4096971926
51.665 Goodbye

Performed 600000 updates in 40102.277 ms
avg: 0.067 ms, min: 0.047 ms, max: 0.353 ms
checksum: 4096971926
51.095 Goodbye

Performed 600000 updates in 40182.177 ms
avg: 0.067 ms, min: 0.047 ms, max: 0.320 ms
checksum: 4096971926
51.991 Goodbye
12k green-robot DI.png
12k green-robot DI.png (925.02 KiB) Viewed 7906 times

Looks like your instinct is backed up by numbers, AngledLuffa :D

Re: UPS friendly green chips?

Posted: Fri Jan 25, 2019 2:51 pm
by disentius
No need for sandbox mode. Edit config.ini in your factorio testinstallation freeplay directory. enables you to run a normal freeplay game with the tools you need.
You'll find config ini here:
You can also use Creative Mode mod, but that one has ups impact on its own.

[your factorio install directory]\data\base\scenarios\freeplay
Make a backup of the original before editing.
More info on the factorio api page and the Wiki.

I use this one to build test setups:
spoiler

Re: UPS friendly green chips?

Posted: Fri Jan 25, 2019 4:09 pm
by Optera
So as quick summary:
All bots: avg: 0.084 ms
Wire belts: avg: 0.080 ms
direct insertion: 0.067 ms

Direct Insertion having the best performance was to be expected, but seeing belted wires perform better than bots is a surprise.

PS you can use Creative Items, which only makes use of existing hidden items and should have no noticeable performance impact.

Re: UPS friendly green chips?

Posted: Fri Jan 25, 2019 4:23 pm
by disentius
Yes, it looks that way.
However, the test was small scale, and i did not try different orientations. Still lots to be tested.
Optera means this Mod
It conveniently avoids the hassle of editing config.ini. :)

Re: UPS friendly green chips?

Posted: Sat Jan 26, 2019 1:07 am
by AngledLuffa
I've been trying some profiling experiments with all of these suggestions, and it's been very interesting so far. Without spamming too many pictures, I find that a simple change like putting a lane balancer at the end of a column of furnaces leads to a big improvement. Presumably the belt doesn't get those occasional gaps which throw off the compressed belt optimizations. I'll keep experimenting with other things (next up is testing my blue chip factories and structure factories, belt vs bot). If I come up with a green chip layout which blows away the layouts presented here, I'll report back, of course. In the meantime, thanks for all the help!

Re: UPS friendly green chips?

Posted: Sat Jan 26, 2019 6:45 am
by AngledLuffa
I built a couple blue chip factories to compare, and the results are pretty biased in favor of bots.

The bot based layout ran 1,000,000 ticks in 49s, and the belt based layout took 147s. I would say that there is probably some optimization to be done in both of the layouts, but in some ways they're about equal - they both have green chip assemblers that run at 5.5 speed, for example.

You can see that the resources come in via infinity chests, and the resulting chips go into an infinity chest that eats everything. Fluids are produced infinitely by putting infinite barrels of that fluid into an assembler which pipes directly into a tank. I figured this was close enough to simulating getting fluids brought in by train

How do I put these images in spoilers?

Edit: one thing I did do on the bot based version was put the inserters on timers, but I doubt that would have that large of an impact. I suppose I could test that as well.
clickme
clickme

Re: UPS friendly green chips?

Posted: Sat Jan 26, 2019 10:06 am
by disentius
Like this:

Code: Select all

[spoiler=clickme][attachment=0]12k green-robot.png[/attachment][/spoiler]
Result:
clickme
Looks promising, your testing. Nice builds!