[0.13.10] Radar drains power or overconsumption?

Bugs that are actually features.
XKnight
Filter Inserter
Filter Inserter
Posts: 329
Joined: Thu May 28, 2015 10:40 pm
Contact:

[0.13.10] Radar drains power or overconsumption?

Post 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
kinnom
Filter Inserter
Filter Inserter
Posts: 706
Joined: Fri Dec 26, 2014 4:20 pm
Contact:

Re: [0.13.10] Radar drains power or overconsumption?

Post by kinnom »

the 20kw comes from refilling the buffer. if you look at the graph you should see small spikes
no yes yes no yes no yes yes
XKnight
Filter Inserter
Filter Inserter
Posts: 329
Joined: Thu May 28, 2015 10:40 pm
Contact:

Re: [0.13.10] Radar drains power or overconsumption?

Post 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)?
zebediah49
Fast Inserter
Fast Inserter
Posts: 122
Joined: Fri Jun 17, 2016 8:17 pm
Contact:

Re: [0.13.10] Radar drains power or overconsumption?

Post 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.
Loewchen
Global Moderator
Global Moderator
Posts: 9549
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.13.10] Radar drains power or overconsumption?

Post by Loewchen »

Based on that I will file this as not a bug.
Post Reply

Return to “Not a bug”