Page 1 of 1
Game takes 100% cpu when paused
Posted: Tue Nov 15, 2016 12:04 pm
by mrvn
When the game is paused because the tech tree pops up or when opening the game options / load / save requester it still uses 100% cpu while the display is 100% static. Nothing changes from frame to frame.
Re: Game takes 100% cpu when paused
Posted: Tue Nov 15, 2016 12:23 pm
by Loewchen
Can not reproduce on 14.20 and windows.
Re: Game takes 100% cpu when paused
Posted: Tue Nov 15, 2016 6:48 pm
by aubergine18
Not sure if it's related or worth investigating, but on late 2012 iMac all CPU cores utilisation increases by around 10-15% when game is paused.
Re: Game takes 100% cpu when paused
Posted: Tue Nov 15, 2016 6:52 pm
by orzelek
I think more details about actual CPU might be needed. CPU %-age will vary a lot by type and speed of CPU in question.
Mine shows about 2.5% when paused which would translate to about 1/4th of a core CPU usage on i7-4790K.
I'd say it's still quite a bit for idle game but not bery bad overall.
Re: Game takes 100% cpu when paused
Posted: Tue Nov 15, 2016 6:58 pm
by steinio
Maybe the CPU throttles down to minimum frequency what also looks like 100% load but only with 800MHz?
Re: Game takes 100% cpu when paused
Posted: Thu Nov 17, 2016 11:07 am
by mrvn
It's an Atom 330 running Linux and throtteling down isn't enabled. Version 14.19 of factorio.
An Atom 330 is rather (painfully so after playing a bit, not playing on that system again) slow so it might well be that others see less CPU usage. What I do see is that the framerate goes up from ~10 to 60 when I pause the game so it does do less. But it shouldn't do any screen redraws at all, nothing changes, nothing is animated. So why would it draw 60 frames a second? The game should be sleeping, waiting for an X event to wake it back up.
Re: Game takes 100% cpu when paused
Posted: Thu Nov 17, 2016 3:33 pm
by Loewchen
mrvn wrote:But it shouldn't do any screen redraws at all, nothing changes, nothing is animated. So why would it draw 60 frames a second? The game should be sleeping, waiting for an X event to wake it back up.
That sounds more like a complete misconception on how it should work, of course the game will still try to render 60fps when the game is paused, it simply would not know if anything has changed unless it has done so, and your mouse pointer is still active.
Re: Game takes 100% cpu when paused
Posted: Mon Nov 21, 2016 1:21 pm
by mrvn
Loewchen wrote:mrvn wrote:But it shouldn't do any screen redraws at all, nothing changes, nothing is animated. So why would it draw 60 frames a second? The game should be sleeping, waiting for an X event to wake it back up.
That sounds more like a complete misconception on how it should work, of course the game will still try to render 60fps when the game is paused, it simply would not know if anything has changed unless it has done so, and your mouse pointer is still active.
The dialog pauses the game. It easily knows that nothing is going to change. The game also knows when the mouse moved. No move, nothing to redraw. And if it moved then you only redraw the parts around the mouse pointer usually.
Re: Game takes 100% cpu when paused
Posted: Mon Nov 21, 2016 2:35 pm
by Rseding91
mrvn wrote:Loewchen wrote:mrvn wrote:But it shouldn't do any screen redraws at all, nothing changes, nothing is animated. So why would it draw 60 frames a second? The game should be sleeping, waiting for an X event to wake it back up.
That sounds more like a complete misconception on how it should work, of course the game will still try to render 60fps when the game is paused, it simply would not know if anything has changed unless it has done so, and your mouse pointer is still active.
The dialog pauses the game. It easily knows that nothing is going to change. The game also knows when the mouse moved. No move, nothing to redraw. And if it moved then you only redraw the parts around the mouse pointer usually.
That's not how any of this works... Moved to not a bug.
Just because the image appears static does not mean it is static.