Page 1 of 1

[0.13.10] Radar drains power or overconsumption?

Posted: Wed Jul 27, 2016 12:16 pm
by XKnight
According to the radar info, its energy consumption should be 300kW.
This can be checked using simple setup (steam + power pole + radar).
Simple setup
But, something strange happens when we use two different radars, where each radar is activated every second tick, like this
1 tick: first radar is active
2 tick: second radar is active
3 tick: first radar is active
4 tick: second radar is active
...

(game speed in video=0.1, combinators are powered from the separate network)
Combinators settings
Current behaviour: energy consumption is ~320 kW
Expected behaviour: energy consumption is 300 kW

Re: [0.13.10] Radar drains power or overconsumption?

Posted: Wed Jul 27, 2016 12:22 pm
by kinnom
the 20kw comes from refilling the buffer. if you look at the graph you should see small spikes

Re: [0.13.10] Radar drains power or overconsumption?

Posted: Wed Jul 27, 2016 12:27 pm
by XKnight
kinnom wrote:the 20kw comes from refilling the buffer. if you look at the graph you should see small spikes
So radar's energy consumption is 320kW at the first tick and this is normal?

Btw. I see spikes... nothing except spikes :D
Video
Also, can someone explain why this overconsumption is 20kW? not 25kW or 15kW? is this value depends on the entity? and where it can be found (wiki/description/status info)?

Re: [0.13.10] Radar drains power or overconsumption?

Posted: Wed Jul 27, 2016 9:24 pm
by zebediah49
It comes from the entity having a buffer of energy available. It's defined by entity.electric_buffer_size. I can't find anything about where it comes from though.

For the radar, though, for example, it's 5333.3333... (via game.player.print(game.player.selected.electric_buffer_size).

That means that it will charge with 333.3... extra joules of energy beyond what is consumed in the first tick (which can be consumed later). In your worst-case alternation scheme, that works out to 320kW, which is about what you measure.

Other entities have this as well. For example, I get 3200 from an electric furnace, despite it only consuming 3000J/tick.

Re: [0.13.10] Radar drains power or overconsumption?

Posted: Wed Jul 27, 2016 9:36 pm
by Loewchen
Based on that I will file this as not a bug.