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

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
DDDGamer
Inserter
Inserter
Posts: 30
Joined: Mon Oct 17, 2016 2:16 pm
Contact:

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

Post by DDDGamer »

FPS drop to 5, when power drops from green to yellow, recovers fps when power recovers.
Running 0.15.12
Attachments
Factorio-FPS-Drop-LowPower.png
Factorio-FPS-Drop-LowPower.png (1.96 MiB) Viewed 2028 times
Last edited by DDDGamer on Thu May 25, 2017 2:10 pm, edited 1 time in total.

Zavian
Smart Inserter
Smart Inserter
Posts: 1641
Joined: Thu Mar 02, 2017 2:57 am
Contact:

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

Post 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.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post by kovarex »

Can you provide the save please?


kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post 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.

User avatar
DDDGamer
Inserter
Inserter
Posts: 30
Joined: Mon Oct 17, 2016 2:16 pm
Contact:

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

Post 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.

Post Reply

Return to “Resolved Problems and Bugs”