[2.0.15] Surprising performance cost for bars moving
Posted: Mon Nov 18, 2024 4:45 pm
Hopefully this is interesting/helpful to someone.
This came about through an investigation in another thread.
Video attached for reference.
When looking at tooltips, there seems to be quite a large increase in "game render preparation" for entities where there is a moving/changing progress bar (or maybe changing text?). Game render preparation time increases by about 500-600% if the bar is changing. i.e. if the solar panel is somewhere between "full day" and "full night", the game render preparation goes from 0.2ms to 1.0ms
This is very easy to see with solar panels and accumulators. The "game preparation time" when looking at the tooltip for an accumulator increases by 500% if the accumulator is charging/discharging.
The same for solar panels during their transition point between generating full power during day and none during night. The "game preparation time" jumps if that bar is moving.
The difference in "game preparation time" is about 1ms, which seems to be quite a lot?
This may also be the case for entities such as steam turbines, and maybe pipes and other entities depending on what is going on?
This came about through an investigation in another thread.
Video attached for reference.
When looking at tooltips, there seems to be quite a large increase in "game render preparation" for entities where there is a moving/changing progress bar (or maybe changing text?). Game render preparation time increases by about 500-600% if the bar is changing. i.e. if the solar panel is somewhere between "full day" and "full night", the game render preparation goes from 0.2ms to 1.0ms
This is very easy to see with solar panels and accumulators. The "game preparation time" when looking at the tooltip for an accumulator increases by 500% if the accumulator is charging/discharging.
The same for solar panels during their transition point between generating full power during day and none during night. The "game preparation time" jumps if that bar is moving.
The difference in "game preparation time" is about 1ms, which seems to be quite a lot?
This may also be the case for entities such as steam turbines, and maybe pipes and other entities depending on what is going on?