Page 1 of 1

[Pending] Requested game speed set to 1 for a while after autosave

Posted: Thu Aug 04, 2016 8:12 am
by iame6162013
After an autosave while /c game.speed 2 is used, the game goes to 60UPS for a couple of seconds.

expected:
The game stays at speed 2 120UPS even after autosave.

Re: Requested game speed set to 1 for a while after autosave

Posted: Thu Aug 04, 2016 9:25 am
by DaveMcW
This is probably caused by the game running the save compression algorithm in the same thread as the main game.

Re: Requested game speed set to 1 for a while after autosave

Posted: Thu Aug 04, 2016 9:54 am
by iame6162013
DaveMcW wrote:This is probably caused by the game running the save compression algorithm in the same thread as the main game.
I highly doubt that because it goes to exactly 60UPS. And shouldn't the compression happen while you wait for the game to save? And the compression shouldn't take that long on my hardware.

(Oh, and the time it lasts in this reduced speed depends on the UPS, if I go to 5x/300UPS it will go down 4x/240UPS)

Re: Requested game speed set to 1 for a while after autosave

Posted: Thu Aug 04, 2016 10:27 am
by Twinsen
Can't reproduce

Re: Requested game speed set to 1 for a while after autosave

Posted: Thu Aug 04, 2016 11:20 am
by iame6162013
In case it matters it's on linux, it also happens right after loading the world(sometimes). It sometimes also occurs after keeping the game paused after a (long) while.

Re: Requested game speed set to 1 for a while after autosave

Posted: Thu Aug 04, 2016 12:11 pm
by Klonan
Thanks for the report,

I also cannot reproduce the issue:


Re: [Pending] Requested game speed set to 1 for a while after autosave

Posted: Thu Aug 04, 2016 12:20 pm
by Twinsen
Sounds like it might be some kind of power saving feature.

Re: [Pending] Requested game speed set to 1 for a while after autosave

Posted: Thu Aug 04, 2016 4:08 pm
by iame6162013
Twinsen wrote:Sounds like it might be some kind of power saving feature.
Why would it be a power saving feature? At most while playing factorio my CPU utilization is 50%, and I'm on a desktop.

(Oh and it doesn't happen after every autosave just after a lot of them)

Re: [Pending] Requested game speed set to 1 for a while after autosave

Posted: Thu Aug 04, 2016 11:51 pm
by TruePikachu
It might be a workaround for those people who can't get to the console when the game is autosaving continuously because they set their speed too high.

Re: [Pending] Requested game speed set to 1 for a while after autosave

Posted: Fri Aug 05, 2016 9:08 am
by iame6162013
TruePikachu wrote:It might be a workaround for those people who can't get to the console when the game is autosaving continuously because they set their speed too high.
You can reduce the frequency of the auto saving in one of the 'esc' key screens.
And the game can't go over 300UPS from my testing, so you should have time to reduce the UPS with the console.

Re: [Pending] Requested game speed set to 1 for a while after autosave

Posted: Fri Aug 05, 2016 9:23 am
by Loewchen
iame6162013 wrote:the game can't go over 300UPS from my testing, so you should have time to reduce the UPS with the console.
If the map is small and the CPU capable you can go beyond 50k.

Re: [Pending] Requested game speed set to 1 for a while after autosave

Posted: Fri Aug 05, 2016 3:44 pm
by iame6162013
I can tell you that these errors(weird dips in UPS and the UPS being capped at 300) didn't occur in my (limited) testing in 0.12.35. (nor did I notice any weirdness while playing factorio prior to .13 )

EDIT:
I can not reproduce this error(the dips in UPS, not the cap)* prior to 0.13.10 (so in 0.13.10 the error occurs sometimes, but it feels like it happens less often).
EDIT2:
The cap (the limit in ups to 300) came with update 0.13.12, if you want to I could create a new topic about that.