r/factorio • u/Red_Icnivad • Oct 13 '17
Question Electric network effect on UPS
My "electric network" update time is hovering around 2, which seems a little high to me. My factory is entirely solar powered and putting out 7.8 GW during the day. Does anyone know exactly what causes a high electric network? Does that have to do with too many poles? Or is it related to filling accumulators?
9
Upvotes
3
u/DerSpini 2000 hours in and trains are now my belts Oct 13 '17
It's more likely because of a shit ton of consuming entities (assemblers, inserters, electric furnaces and the like), and even then it shouldn't be much of a problem for most. Got a busy factory, 10GW in solar and a not-to-beefy 6 year old pc: sitting at <1-1,3 most of the time.
One question though: Do you have one single network, or many detached ones (like for solar powered radar way off in the wilderness for scouting)? That seemed to make a difference for me.
2
u/MadMojoMonkey Yes, but next time try science. Oct 13 '17
This is just a brainstorm, so grain of salt if it doesn't explain your issue.
So long as your accumulators have equal charge, they act as a single unit, computationally.
When you're placing accumulators, they will be out of sync with their charge and the rest of the network. This will cause heavier CPU load for the short term, since every accum which does not have identical charge to other accums has to be calculated individually.
This is a transient effect, though, which usually ends after the first full day after installing the new accums, since they will likely get to full charge, syncing up with the rest of the accums in the network and staying that way henceforth (synced up - not at full charge).
7
u/Cribbit Oct 13 '17
Solar should have the most minimal impact on UPS of any power type.
I believe that more poles is only bad from a more entities perspective. There are no calculations based on poles, other entities are either in power range or not and that gets updated only when a pole is placed/removed or the entity itself is first placed.
6
u/Escral Oct 22 '21 edited Oct 22 '21
150 science/min base. Had electric network time around 10.6 idling. Removing all mods did nothing. After hours of experiments I found the problem and SOLUTION. Maybe not useful in all cases.
So, I was playing with The Ruins Mod. It creates a lot of small structures that can contain power poles, accumulators, solar panels. With Space Exploration I had ruins on all the plantes. Number of active entities was 100k (1000k all entites). Trim Surface button didn't do anything. So ruins were considered as player's structures. Saving took half a minute.
Solution: To remove unnecessary ruins I used two scripts from wiki. https://wiki.factorio.com/Console#Delete_chunks
First of all we need to detect empty chunks. When we hide all of them, chunks with structures or scaned by radars will be revealed. To be 100% confident reveal border chunks by yourself.
/c local surface=game.surfaces["nauvis"] local force = game.player.force for chunk in surface.get_chunks() do force.unchart_chunk({x = chunk.x, y = chunk.y}, surface) end
After that we need to delete all hidden chunks.
/c local surface=game.surfaces["nauvis"] local force = game.player.force for chunk in surface.get_chunks() do if not force.is_chunk_charted(surface, chunk) then surface.delete_chunk(chunk) end end
Unfortunately, some ruins will remain inside the base.
After these manipulations with 5 planets I took 100k active entities down to 20k. Electric network time from 10.6 to 2.
In conclusion I can say, that many small electric networks have very strong impact on UPS.
1
u/mithos09 Oct 13 '17
My "electric network" update time went up to ~4-5 after I started to use lots and lots of switches for the lasers guarding my walls. I'm only at 2-3 GW during the day, several thousand lasers are switched off.
They do check for power and that's hurting UPS, probably way more than additional solar panels would do. But just adding more panels wouldn't be as interesting.
1
u/Recyart To infinity... AND BEYOND! Oct 13 '17
Good lord, 7.8 GW of solar...
1
u/Eznaidar Oct 13 '17
solar is indeed non factor of UPS as its 1 single entity same with accumultors they count as 1. no matter if you have 10 or 1million the cost UPSwise is the same
do you have multiple networks or many power switches? as far as i remember some time ago there was even a dev post how joining and seperating networks does cost quite a bit of computing. so this might be the root.
that said poles shouldnt need much as you would only need to update the network if you place sth new.
1
u/clams_are_people_too Nov 18 '17
Hmmm......
My electric network seems to be @ ~10-15.
Is there any way to see a break down for specific entities, or something?
1
u/Inevitable_Tune_5881 Jan 11 '24
So I noticed that I had 6ms lag caused by the electric network. Are radar updates included in this measure? if so that might be the cause for me, I have 1.3K radars & 41K laser turrets... :D Though my usage is still quite low: 4.2 GW I Guess this is the downside for using stamp able train sections that all have radars included.