Page 1 of 1

[0.15.12] [kovarex] Huge FPS drop when low on power late game

Posted: Thu May 25, 2017 1:38 pm
by DDDGamer
FPS drop to 5, when power drops from green to yellow, recovers fps when power recovers.
Running 0.15.12

Re: []0.15.12 Huge FPS when low on power late game

Posted: Thu May 25, 2017 1:56 pm
by Zavian
I saw something similar with 0.14. I suspect that your cpu is only just able to keep up with the server when everything is running normally. Then when power drops from green to yellow, and all those beacons (and everything else) are suddenly only partially powered, meaning you cpu has to do more work to work out the effective speed/bonus of every assembler/beacon/inserter every tick. At that point it is no longer able to keep up with the server, and hence starts falling behind and drops frames in an attempt to keep up/catch up.

Re: []0.15.12 Huge FPS when low on power late game

Posted: Thu May 25, 2017 2:02 pm
by kovarex
Can you provide the save please?

Re: [0.15.12] Huge FPS drop when low on power late game

Posted: Thu May 25, 2017 2:16 pm
by DDDGamer
30mb save, running a softmod as well
https://drive.google.com/file/d/0B8JCku ... sp=sharing

Re: [0.15.12] Huge FPS drop when low on power late game

Posted: Thu May 25, 2017 5:06 pm
by kovarex
DDDGamer wrote:30mb save, running a softmod as well
https://drive.google.com/file/d/0B8JCku ... sp=sharing
Thanks.
It wasn't technically a bug, but it was worth fixing.
I optimised the Beacons generally (not only for this case), so instead of updating every tick, they update once per 120 ticks. This means almost 120X reduction of beacon update times.
In your save, I was able to get the update time (when power was not full) from approximately 12ms to approximately 7ms.

For 0.15.14

Edit: But whenever you can't keep up with the server the FPS goes down dramatically so the client can try to catch up with him.

Re: [0.15.12] [kovarex] Huge FPS drop when low on power late game

Posted: Thu May 25, 2017 5:17 pm
by DDDGamer
Thanks for such a timely fix, you guys are awesome!
Yeah i realizes wasnt a "bug" but a performance issue, hope this was an ok place to report it.
I realize optimizations are hard, thanks again.