UPS / FPS helper - Power switches

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
dinodod
Long Handed Inserter
Long Handed Inserter
Posts: 84
Joined: Tue Mar 10, 2015 10:42 pm
Contact:

UPS / FPS helper - Power switches

Post by dinodod »

Just wanted to know if I were to wire a factory to be smart and power down idle / unneeded factories, would that help improve UPS / FPS at all or would the power outage cause more issues on the server? I am trying to work on a SP map atm where I am using power switches to control which parts of my base gets turned on at different times using various logic builds.

I just wish there was a cleaner way to manage all the belts as well. That would be sweet.
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2383
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: UPS / FPS helper - Power switches

Post by Jap2.0 »

Probably, though I doubt it would be much (if any) different than if that part of your factory wasn't doing any production (for example if it was out of resources or something), and I doubt it would completely remove the performance overhead. In short, I have no idea :).
There are 10 types of people: those who get this joke and those who don't.
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: UPS / FPS helper - Power switches

Post by Optera »

I once got a dev reply stating powered down inserters stuck mid move take more computing than powered inserters idling (sleeping).
So you may want to make sure to add an off delay timer allowing all inserters to run out of items to move before powering them off.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3719
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: UPS / FPS helper - Power switches

Post by DaveMcW »

Fully powered entities always have better UPS.

You can use power switches to reduce power consumption and pollution, but don't do it for the UPS.
leitk
Fast Inserter
Fast Inserter
Posts: 115
Joined: Wed Jun 21, 2017 7:20 pm
Contact:

Re: UPS / FPS helper - Power switches

Post by leitk »

Do unpowered (0%) entities harm UPS?
Mimos
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Mon Nov 07, 2016 5:15 pm
Contact:

Re: UPS / FPS helper - Power switches

Post by Mimos »

My experience with parts of the factory that are in a standstill for reasons that are complytely not my fault (bold lie) the UPS go up a lot. I have never tried if powering them down safes additional ups or not. At least the slight additional reduction in power consumption could maybe reduce burner-based power production and thus increase UPS a tiny bit further.
Zavian
Smart Inserter
Smart Inserter
Posts: 1649
Joined: Thu Mar 02, 2017 2:57 am
Contact:

Re: UPS / FPS helper - Power switches

Post by Zavian »

Anytime you have large sections of your factory inactive, ups will go up (assuming it was below 60 to start with). I don't think it matters whether you used a power switch, or stopped the input or output. Totally inactive entities (because they are input starved or their output is blocked, or they are without power) use less cpu time than active entities.
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: UPS / FPS helper - Power switches

Post by Bilka »

Zavian wrote:Anytime you have large sections of your factory inactive, ups will go up (assuming it was below 60 to start with). I don't think it matters whether you used a power switch, or stopped the input or output. Totally inactive entities (because they are input starved or their output is blocked, or they are without power) use less cpu time than active entities.
It matters. If you unpower an entity it has to check each tick whether it receives energy again, so it can't go inactive.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
dinodod
Long Handed Inserter
Long Handed Inserter
Posts: 84
Joined: Tue Mar 10, 2015 10:42 pm
Contact:

Re: UPS / FPS helper - Power switches

Post by dinodod »

Optera wrote:I once got a dev reply stating powered down inserters stuck mid move take more computing than powered inserters idling (sleeping).
So you may want to make sure to add an off delay timer allowing all inserters to run out of items to move before powering them off.
Thanks for the tip... That makes redesigning the factories a challenge now... Mmmmm....
dinodod
Long Handed Inserter
Long Handed Inserter
Posts: 84
Joined: Tue Mar 10, 2015 10:42 pm
Contact:

Re: UPS / FPS helper - Power switches

Post by dinodod »

DaveMcW wrote:Fully powered entities always have better UPS.

You can use power switches to reduce power consumption and pollution, but don't do it for the UPS.
Can you explain why not? The idea is to make a mega base and have each factory work in serial instead of in parallel. Thus instead of 50 factories working at once, 1 would be active and 49 would be idle until triggered by a logic condition.

I would think that as the factories are not powered, they don't have any requests for UPS except for checking to see if power is applied or not. I was thinking of applying this logic to the belts as well so they would be disabled and thus lower UPS demand. It would be circuit logic hell but belts not moving should in my theory help a little with UPS as well???
dinodod
Long Handed Inserter
Long Handed Inserter
Posts: 84
Joined: Tue Mar 10, 2015 10:42 pm
Contact:

Re: UPS / FPS helper - Power switches

Post by dinodod »

Zavian wrote:Anytime you have large sections of your factory inactive, ups will go up (assuming it was below 60 to start with). I don't think it matters whether you used a power switch, or stopped the input or output. Totally inactive entities (because they are input starved or their output is blocked, or they are without power) use less cpu time than active entities.
That's what I thought as well, but wouldn't a powered inserter / factory still perform more UPS to check for validation of an item to grab / insert / etc whereas a unpowered inserter/factory only checks for power conditions? In a mega base, this leads to thousands of updates that are not needed and thus UPS is saved.
mrvn
Smart Inserter
Smart Inserter
Posts: 5946
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: UPS / FPS helper - Power switches

Post by mrvn »

dinodod wrote:
Zavian wrote:Anytime you have large sections of your factory inactive, ups will go up (assuming it was below 60 to start with). I don't think it matters whether you used a power switch, or stopped the input or output. Totally inactive entities (because they are input starved or their output is blocked, or they are without power) use less cpu time than active entities.
That's what I thought as well, but wouldn't a powered inserter / factory still perform more UPS to check for validation of an item to grab / insert / etc whereas a unpowered inserter/factory only checks for power conditions? In a mega base, this leads to thousands of updates that are not needed and thus UPS is saved.
An assembler has a waiting queue for inserters. The inserter gets registered there and goes to sleep when the assembler is blocked. So the inserter doesn't have to check each tick, it gets told when to wake up again.

I'm not sure about belts and waiting queues. Does an assembler waiting on an empty belt check the belt every tick? Or an assembler with stuff in its hand and a full belt?

I'm pretty sure inserters with circuit conditions get an event every time the signals change but can sleep in between. So you might want to turn the inserters off by circuit to save UPS. But better test that.
Post Reply

Return to “Gameplay Help”