[2.0.77] Identical production stats causing rapid flickering

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

etpi
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Aug 12, 2026 5:36 am
Contact:

[2.0.77] Identical production stats causing rapid flickering

Post by etpi »

Hello :)

1. What did you do?
Open the production statistics interface from Aquilo. Click on the fluids tab. Set the time duration to 50h. Look at Ammoniacal solution and Ammonia.


2. What happened?
In the recipe for the ammoniacal solution separation, the amount of input fluid is equal to the amount of output fluid. The production statistics view sorts items by quantity. When two items have an identical quantity (where one produces the other, so there's likely a tiny tiny delay before the volume of the produced item catches up to the volume of the ingredient), especially when overall volumes are quite large, the order of both items can end up being repeatedly swapped, sometimes very quickly. This is not ideal from a UX perspective. See the video snippet inline below, or a longer (~1 min) video attached.
aquilo-fluids-stats-flickering.mp4
(9.63 MiB) Downloaded 22 times

3. What did you expect to happen instead?
The observed behaviour is quite likely expected, the production statistics shows very precise quantities and is refreshed very often. However when viewing production statistics with a long time range and/or very large volumes, the 1-1 ratio of the recipe makes the volumes of both liquids nearly identical, which can result in their sort order being swapped very rapidly. When it happens, the experience for the player is less ideal, but it should not impact gameplay in most cases.


4. Does it happen always, once, or sometimes?
This issue is something I ran into well into my Space Age run. As it requires Aquilo unlocked, providing a smaller save file to reproduce the behaviour with a minimal example is not feasible easily for me.
In my save file (dropbox link - 67 MB), when viewing the production stats over the last 50 hours or less (which filters out my arrival on Aquilo, where I manually manipulated liquids leading to a volume difference during that time), the volume of both liquids are equal, though the flickering happens more when a longer time span is selected.
Based on the recipe for ammoniacal solution separation, I presume it could apply to anyone and may be worthy of opening a bug report. There are probably other similar use cases where this can happen, especially if considering other mods.


5. Fix idea
I thought about many possible ways this issue could be mitigated, and wanted to share the idea I think could work best: Reducing the rate at which the sorting of the production statistics is re-computed, but only for long time spans. When selecting 5s, 1m, or so, a player can reasonably expect the volumes will change rapidly and items will be reordered very frequently, but when looking at stats over an hour or more, it's much less common that the exact volumes for two or more items will be the same, and even if it is, I think that re-ordering them every second or so would provide a better experience than if it's done as often as possible.


6. What about Space Age 2.1?
When trying to reproduce this in the experimental build, it did not work, but not because the issue is not present... It looks like the save file upgrade process might not have carried over the fluid that was already inside offshore pump buffers. This led to an imbalance between the two liquids upon starting version 2.1.14, which means I would have to wait a long time (likely over 10 hours, maybe 50) before the fluid volumes become the same again in the last X time unit at a high enough total volume. This is possibly a separate very minor bug, however considering the offshore liquid resources are infinite, I don't think this causes a real issue, and will not affect players starting a new game in 2.1.
2.1 upgrade produces more offshore fluid.png
2.1 upgrade produces more offshore fluid.png (90.07 KiB) Viewed 211 times
Attachments
longer-video-flickering-stats.mp4
(24.89 MiB) Downloaded 11 times
factorio-current.log
(9.37 KiB) Downloaded 9 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 17365
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.77] Identical production stats causing rapid flickering

Post by Rseding91 »

Thanks for the report however this is not a bug. Maybe it’s undesired however the GUI is doing exactly what it was intended to do: show things ordered by amount.
If you want to get ahold of me I'm almost always on Discord.
etpi
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Aug 12, 2026 5:36 am
Contact:

Re: [2.0.77] Identical production stats causing rapid flickering

Post by etpi »

I agree the interface is behaving as designed. Thank you for moving this to the suggestions section. Here's a shorter entry for the idea rather than using the bug template.
TL;DR
Reduce the rate at which the sorting of the production statistics is re-computed, but only for long time spans.
What?
The production statistics interface sorts items produced/consumed by amount. The refresh rate of this interface is quite high (multiple times per second), to effectively show accurate real-time values of item amounts and other properties.
When viewing production statistics for long time spans, such as > 1h, it is quite rare that the sorting order of the items will change after the initial order is determined the first time. It is even rarer that the sorting order will change multiple times, but there is a case where it can happen extremely often, such as the 1 to 1 ratio of production of ammonia from ammoniacal solution, which is produced in same quantity by offshore pumps.

I suggest to run the code that re-orders the items less often than every time amounts are re-computed, perhaps every second or two, only when viewing the interface for long time spans.
Why?
This will prevent items with equal amount produced/consumed to be swapped back and forth multiple times per second, causing a flickering effect, and preventing to read the details of the tooltip (e.g. exact number, temperate, etc.).
This would also slightly reduce the amount of computations done by the game.
There would be no visual change to the interface, and no player would notice a difference.
robot256
Smart Inserter
Smart Inserter
Posts: 1454
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.77] Identical production stats causing rapid flickering

Post by robot256 »

+1
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
worph
Fast Inserter
Fast Inserter
Posts: 172
Joined: Thu Jun 25, 2026 2:01 pm
Contact:

Re: [2.0.77] Identical production stats causing rapid flickering

Post by worph »

There really should be some rolling average or something, not even for the graph itself, just for the ordering.
Rseding91 wrote: Wed Aug 12, 2026 9:25 am Thanks for the report however this is not a bug. Maybe it’s undesired however the GUI is doing exactly what it was intended to do: show things ordered by amount.
The UIs jobs is to be the interface between player and game (literally what UI means). And if the user is not able to click a specific item because it flickers 60 times a second, then that UI is not doing it's baseline job properly.

+1
Post Reply

Return to “Ideas and Suggestions”