Entities consuming/producing fluid never go to sleep
Entities consuming/producing fluid never go to sleep
I noticed that entities consuming/producing fluid never go to sleep. At megabase scale they stay awake (and consume UPS) even in no ingredients/fully backed up. While entities using solid ingredients happily go to sleep under same conditions.
In this correct? Any plan to fix it?
In this correct? Any plan to fix it?
Re: Entities consuming/producing fluid never go to sleep
Is there any other existing or planned for implementation way to put them to sleep ? Like powering off, disabling with circuits, etc.
I might be naive, but would it possible to put entities that we inactive for 10-15 seconds to semi-sleep and check them once per second, not every tick? This will solve the problem of megabases with lots of fluids such as Bob + Angels.
Re: Entities consuming/producing fluid never go to sleep
Like setting circuit conditions controling power switches to turn the power off and on, when your buffering fluid tanks are full or empty enough?danyax wrote: ↑Tue Mar 10, 2020 3:05 pm Is there any other existing or planned for implementation way to put them to sleep ? Like powering off, disabling with circuits, etc.
I might be naive, but would it possible to put entities that we inactive for 10-15 seconds to semi-sleep and check them once per second, not every tick? This will solve the problem of megabases with lots of fluids such as Bob + Angels.
Provided of course your fluid handeling areas aren't too interconnected with the rest of the grid...
Re: Entities consuming/producing fluid never go to sleep
Exactly. Imagine independent rail-based factory block. Once output tanks reach certain level, like 3-4 full train loads, I can switch factory block to power off to save UPS. I do not care about idle building power usage, UPS is my only concern.
Re: Entities consuming/producing fluid never go to sleep
But this solution is fully implementable with the vanilla cicuit network (Just thinking about a setup with power switches and SR-Latches in the afore mentionded buffer area). Since -correct me, if I'm wrong- unpowerd building, fluid utilising or not, shouldn't "stay awake" and therefore not consuming UPS, the issue you've described, is more of a layout and design problem. No new mechanic necessary.
- Deadlock989
- Smart Inserter
- Posts: 2529
- Joined: Fri Nov 06, 2015 7:41 pm
Re: Entities consuming/producing fluid never go to sleep
danyax wrote: ↑Mon Mar 09, 2020 12:36 pm I noticed that entities consuming/producing fluid never go to sleep. At megabase scale they stay awake (and consume UPS) even in no ingredients/fully backed up. While entities using solid ingredients happily go to sleep under same conditions.
In this correct?
Entities which can handle fluid have fluid boxes. Unpowering a machine doesn't/shouldn't clamp off the pipe connection feeding into it. If the fluid box went to sleep then the fluid connections would be severed - either that or the fluid simulation along the entire pipe segment would also need to go to sleep. This would be particularly heinous for entities with pass-through fluid boxes.
Last edited by Deadlock989 on Tue Mar 10, 2020 6:42 pm, edited 1 time in total.
Re: Entities consuming/producing fluid never go to sleep
Missing ingredients/ backed up production is not necessarily the same case as no power.Deadlock989 wrote: ↑Tue Mar 10, 2020 6:35 pmdanyax wrote: ↑Mon Mar 09, 2020 12:36 pm I noticed that entities consuming/producing fluid never go to sleep. At megabase scale they stay awake (and consume UPS) even in no ingredients/fully backed up. While entities using solid ingredients happily go to sleep under same conditions.
In this correct?
Question remains.
- Deadlock989
- Smart Inserter
- Posts: 2529
- Joined: Fri Nov 06, 2015 7:41 pm
Re: Entities consuming/producing fluid never go to sleep
Missing *item* ingredients definitely goes to sleep, red circle means sleeping:
Same for backed up *item* production
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Entities consuming/producing fluid never go to sleep
So in conclusion, fluid consuming entities behave as to be expected.
Any UPS issues, if not mod related, or theorized, it‘s not clear from OP should be fluid related.
Any UPS issues, if not mod related, or theorized, it‘s not clear from OP should be fluid related.
Seemingly (credit to Deadlock989) with good reason and even if not, is off the charts before 1.0Entities which can handle fluid have fluid boxes. Unpowering a machine doesn't/shouldn't clamp off the pipe connection feeding into it. If the fluid box went to sleep then the fluid connections would be severed - either that or the fluid simulation along the entire pipe segment would also need to go to sleep. This would be particularly heinous for entities with pass-through fluid boxes.
Re: Entities consuming/producing fluid never go to sleep
Let me state again the problem. I have no way to put to sleep entities that has no *item" output but have fluid output only. They remain always on, consuming UPS (I have extensively tested this in creative mode). So factory blocks containing hundreds of chem plants, despite all fully backed up, are always awake with noticeable impact on UPS.
Pass through entities could be excluded from the solution, if it is difficult to include them.
Fluid management time is not a problem, just entity update time. 1000 of entities fully disconnected from pipes still consume UPS.
This is not a mod problem, you can reproduce it with vanilla refinery.
All picture presented are correct, but it does not help if no *items* involved.
If powering off would put entities to sleep, it will solve the problem.
Entities which can handle fluid have fluid boxes. Unpowering a machine doesn't/shouldn't clamp off the pipe connection feeding into it. If the fluid box went to sleep then the fluid connections would be severed - either that or the fluid simulation along the entire pipe segment would also need to go to sleep. This would be particularly heinous for entities with pass-through fluid boxes.
Clamping off is not needed, just entities sleep will help a lot. Putting entities to less frequent updates if they are not working for some time also solves the problem.
Re: Entities consuming/producing fluid never go to sleep
Wait, so a fluid producer can have nothing to do and still be active? Neat. Post your save, devs love that sort of weird stuff.
Re: Entities consuming/producing fluid never go to sleep
Just put oil refinery in vanilla without any pipe connection at all - it will consume UPS. Stamp in creative mode 1000 of them and see you UPS drops
Re: Entities consuming/producing fluid never go to sleep
Your observations can be validated: all fluid only using and outputing entities aren't showing the inactive state, regardless if actually working or not.
Concordantly for powerd and unpowerd refineries: Note recipe (BOP) was set but not shown.
This would conclude, that unpowering such entities isn't going to save any UPS. As for mechanic change,
Re: Entities consuming/producing fluid never go to sleep
conn11, good that you come to the same conclusion regarding how game mechanics works now.
Still, I think forum purpose is to provide feedback to developers of real problems dedicated players have. I play with 10 000 science multiplier and expensive recipes on full A&B mods, and many issues that are relevant for megabases I experience at red science level. This is my choice of course, but exactly same problems will be relevant for any megabase.
If developers decided for whatever reason to not implement it now or never, so be it. But my preference as someone with 4500 hours of Factorio playtime is clearly UPS optimization for fluids production, as complex mods use much more fluids then vanilla.
That said, current state of fluid optimization is great overall, my only pain is idle entities update time. You can safely overbuild item producing staff, use direct insertion with non perfect ratios - and it work like magic, UPS is consumed strictly proportional to actual production. I would really love to have same luxury for fluids.
Still, I think forum purpose is to provide feedback to developers of real problems dedicated players have. I play with 10 000 science multiplier and expensive recipes on full A&B mods, and many issues that are relevant for megabases I experience at red science level. This is my choice of course, but exactly same problems will be relevant for any megabase.
If developers decided for whatever reason to not implement it now or never, so be it. But my preference as someone with 4500 hours of Factorio playtime is clearly UPS optimization for fluids production, as complex mods use much more fluids then vanilla.
That said, current state of fluid optimization is great overall, my only pain is idle entities update time. You can safely overbuild item producing staff, use direct insertion with non perfect ratios - and it work like magic, UPS is consumed strictly proportional to actual production. I would really love to have same luxury for fluids.
-
- Burner Inserter
- Posts: 6
- Joined: Mon Jun 06, 2022 10:28 pm
- Contact:
Re: Entities consuming/producing fluid never go to sleep
I just ran into a similar issue with 9544 pumps that won't go to sleep and use 1ms of update time. Those pumps are mainly used in stations or to boost the throughput of long pipes. I was under the impression that pumps that are shut off using a circuit connection would properly go to sleep. But they unfortunately do not.
Re: Entities consuming/producing fluid never go to sleep
Does that mean, that flamethrower defenses are bad for ups?
Pony/Furfag avatar? Opinion discarded.
Re: Entities consuming/producing fluid never go to sleep
Well, i don't know how the fluid system is currently implemented. But i think there is some threshold implemented to negate wavebuilding in pipes and mechanisms to reduce reflections on ends. So in my opinion if no fluid is put into the system and none goes out, this system will at some point go into a state that we could consider constant.
If all inputs and outputs of an entity are in this constant state and the entity production is in some input starving or output filled condition, that entity could go into sleep until one input or output state changes it's content and would not be considered constant anymore.
Well, there are cases that have to be considered but looks like a simple oberserver pattern to me. And yes, i know this is a massive simplification and things might not be that easy.
But in grand scale bases, where many fluid using entities were built, this would reduce the active entity count by huge amount.
If all inputs and outputs of an entity are in this constant state and the entity production is in some input starving or output filled condition, that entity could go into sleep until one input or output state changes it's content and would not be considered constant anymore.
Well, there are cases that have to be considered but looks like a simple oberserver pattern to me. And yes, i know this is a massive simplification and things might not be that easy.
But in grand scale bases, where many fluid using entities were built, this would reduce the active entity count by huge amount.
Re: Entities consuming/producing fluid never go to sleep
I have isolated segments of flamethrowers, and they never have the red circle on them, so I assume they do not sleep.
They are fully pressurised with pumps.
They are fully pressurised with pumps.
Pony/Furfag avatar? Opinion discarded.