Page 1 of 2

[0.13.10] [Pending] [Twinsen] New performance issues FPS/UPS drops

Posted: Sat Jul 23, 2016 1:41 am
by HeilTec
Since updating from 0.13.9 to 0.13.10 the game repeatedly drops to 30 UPS and then returns to normal (60)
Sometimes UPS remains normal and the FPS drops to 30.

This was observed on a new unexplored map.

I am not alone: http://steamcommunity.com/app/427520/di ... 719213115/

(edit) Memory usage seems to be rising during game (memory leak?)

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sat Jul 23, 2016 9:48 am
by Rseding91
Do you have any mods?

Upload your save file and game log(s) + any mods you have.

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sat Jul 23, 2016 1:33 pm
by HeilTec
Problem shows on empty map - no mods.

My laptop is slow, but it worked fine in 0.13.9

(It seems related to player location - in the woods by the copper)

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sat Jul 23, 2016 1:40 pm
by Rseding91
If you've got a slow computer try turn video memory usage to medium/low.

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sat Jul 23, 2016 7:34 pm
by malloc
I have this issue as well since the update to .10 but my machine is not low spec. Opening the same save file in .09 works fine at a solid 60FPS at all times but in .10 it's at 30FPS about 90% of the time. Tried it for about an hour but couldn't detect any pattern to when it would switch back to 60FPS.

Pure vanilla steam install on Windows 10. Video is NVIDIA GTX 970.

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sat Jul 23, 2016 7:49 pm
by Rseding91
malloc wrote:I have this issue as well since the update to .10 but my machine is not low spec. Opening the same save file in .09 works fine at a solid 60FPS at all times but in .10 it's at 30FPS about 90% of the time. Tried it for about an hour but couldn't detect any pattern to when it would switch back to 60FPS.

Pure vanilla steam install on Windows 10. Video is NVIDIA GTX 970.
Are you using any mods?

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sat Jul 23, 2016 11:26 pm
by HeilTec
malloc wrote:Pure vanilla
Must mean not using any mods.

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sat Jul 23, 2016 11:32 pm
by HeilTec
Rseding91 wrote:If you've got a slow computer try turn video memory usage to medium/low.
Thank You for the advice.

It is sad if new performance issues forces me to lower the quality even further.
I would much prefer to continue with the settings that have worked so well in previous versions.

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sun Jul 24, 2016 8:14 am
by malloc
Rseding91 wrote:
malloc wrote:I have this issue as well since the update to .10 but my machine is not low spec. Opening the same save file in .09 works fine at a solid 60FPS at all times but in .10 it's at 30FPS about 90% of the time. Tried it for about an hour but couldn't detect any pattern to when it would switch back to 60FPS.

Pure vanilla steam install on Windows 10. Video is NVIDIA GTX 970.
Are you using any mods?
As HeilTec surmised no mods at all.

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sun Jul 24, 2016 11:19 am
by Rseding91
Can anyone experiencing FPS/UPS drops please enable the debug option for time stats and post screenshots?

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sun Jul 24, 2016 12:15 pm
by malloc
Rseding91 wrote:Can anyone experiencing FPS/UPS drops please enable the debug option for time stats and post screenshots?
Is this what you need?
Factorio_v.13.10_30FPS_Issue.png
Factorio_v.13.10_30FPS_Issue.png (18.12 MiB) Viewed 6409 times

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sun Jul 24, 2016 12:19 pm
by malloc
The other possibly related change I've noticed is the load screen hangs at Sprites 40% for 5+ seconds with no pause at any other part of the load. This isn't the case in .9 and earlier.

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sun Jul 24, 2016 1:55 pm
by posila
Most likely it is somehow related to Twinsen's rewrite of the game loop.

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sun Jul 24, 2016 8:29 pm
by Loewchen
posila wrote:Most likely it is somehow related to Twinsen's rewrite of the game loop.
I am not so sure.
The frame time is lost in the flip, I have seen this behavior in several reports in .12 but assumed driver issues until I experienced it myself in .13 (13.5 if think).
I could gather those reports if you think it is not a new thing.

Greetings Loewchen

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sun Jul 24, 2016 9:02 pm
by waduk
Can confirm, i have this massive slowdown to 30 fps as well from time to time. This is not happening with 0.13.9.
No mods, pure vanilla.
Can't post my debug though.

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Sun Jul 24, 2016 9:25 pm
by Rseding91
malloc wrote:The other possibly related change I've noticed is the load screen hangs at Sprites 40% for 5+ seconds with no pause at any other part of the load. This isn't the case in .9 and earlier.
Nothing changed sprite loading wise between 13.9 and 13.10 which leads me to believe there's something else going on here... I don't know what though.

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Mon Jul 25, 2016 1:43 am
by vortex1967
Hello all,

I have the same issue but worse.
I run the downloadable zip version of Factorio extracted onto an external HDD.(so I can take Factorio where ever I go) :D

When 0.13 came out I made two separate installs.
One is heavily modded and the other is pure vanilla.
They are both updated to the same version at the same time as each new update comes out.
They are both fresh 0.13 installs on a Windows 7 64bit computer.

Heavily modded version:
Since updating from 13.9 to 13.10 is unplayable from the start.
My FPS drops to 0.8 and the UPS drops to 1.6 and stays there.
In the debug screen(when it finally opened)I noticed the reading for script updates would fluctuate between 500 up to 1200 and sometimes higher.
(I checked a heavily modded 12.35 version and script updates sat between 0.7 & 0.8)

Pure vanilla:
When I switch from map view back to game, occasionally the game slows down as if in slow motion for a couple of seconds.
During normal game play it goes into slow motion for a couple of seconds and then comes good.
The time between events varies, I could play the game for an hour and nothing would happen or it could be 5 minutes.
There doesn't seem to be any particular action that will trigger the event.
Script updates usually sit at 0.001 during game play but does seem to fluctuate higher when I get a slow down.

Before you say it :) , I know the game is installed on an external HDD.
I moved both versions onto the computers main HDD with the same results.
The only difference I have noticed between external HDD and main computer HDD is slightly slower load and save times.

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Mon Jul 25, 2016 2:05 am
by sambot
I have been experiencing a drop similar to those described. I initially blamed a mod (Orbital Ion Cannon), but after uninstalling it, I still encountered it. I never had it happen in 0.13.9. I did, however, discover that it occurs fairly reliably when I walk through specific parts of my factory. It rarely happens anywhere else (could just be luck).
Three drops walking through the same area, and one in which things are fine (my UPS usually holds steady at 60, my FPS tends to misbehave at 40-50):
drop1.jpg
drop1.jpg (918.49 KiB) Viewed 6339 times
drop3.jpg
drop3.jpg (994.19 KiB) Viewed 6339 times
drop2.jpg
drop2.jpg (944.42 KiB) Viewed 6339 times
fine.jpg
fine.jpg (997.42 KiB) Viewed 6339 times
I had the thought that the trees overlapping the ore may be an issue, as I got the same UPS drop at a similar location on this map where I haven't built anything. Doesn't make much sense for a UPS drop though, and I couldn't get it to happen in a similar spot in a new world when I tested it.
Screenshots are after disabling all mods and restarting game.
vortex1967 wrote:Hello all,

I have the same issue but worse.
I run the downloadable zip version of Factorio extracted onto an external HDD.(so I can take Factorio where ever I go) :D

When 0.13 came out I made two separate installs.
One is heavily modded and the other is pure vanilla.
They are both updated to the same version at the same time as each new update comes out.
They are both fresh 0.13 installs on a Windows 7 64bit computer.

Heavily modded version:
Since updating from 13.9 to 13.10 is unplayable from the start.
My FPS drops to 0.8 and the UPS drops to 1.6 and stays there.
In the debug screen(when it finally opened)I noticed the reading for script updates would fluctuate between 500 up to 1200 and sometimes higher.
(I checked a heavily modded 12.35 version and script updates sat between 0.7 & 0.8)

Pure vanilla:
When I switch from map view back to game, occasionally the game slows down as if in slow motion for a couple of seconds.
During normal game play it goes into slow motion for a couple of seconds and then comes good.
The time between events varies, I could play the game for an hour and nothing would happen or it could be 5 minutes.
There doesn't seem to be any particular action that will trigger the event.
Script updates usually sit at 0.001 during game play but does seem to fluctuate higher when I get a slow down.

Before you say it :) , I know the game is installed on an external HDD.
I moved both versions onto the computers main HDD with the same results.
The only difference I have noticed between external HDD and main computer HDD is slightly slower load and save times.
I think you are running into two separate issues, I saw another bug report regarding severe lag with mods due to the scripting changes made in 0.13.10 (see comments on viewtopic.php?f=3&t=29612).

Let me know if saves or logs etc might help.

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Mon Jul 25, 2016 8:45 am
by noliVe
linux 64 bit serverversion

100% cpu usage

clean new map -


Startcommand
screen -dmS factorio"$counter"_ $pfad/game/bin/x64/factorio -c $pfad/config"$counter"/config.ini --start-server-load-latest --autosave-slots 3 --autosave-interval 20 --allow-commands admins-only --server-settings $pfad/config"$counter"/server-settings.json

Re: [0.13.10] New performance issues FPS/UPS drops

Posted: Mon Jul 25, 2016 9:51 am
by Twinsen
Loewchen wrote:
posila wrote:Most likely it is somehow related to Twinsen's rewrite of the game loop.
I am not so sure.
The frame time is lost in the flip, I have seen this behavior in several reports in .12 but assumed driver issues until I experienced it myself in .13 (13.5 if think).
I can't see how my changes can be related. I call render and flip the same as before. Only thing I can think of is some timing magic inside the drivers.
I'll investigate.

For now the people who have this problem should disable Vsync and restart the game.
If you still have this issue with vsync off, upload a screenshot with the timings as some of the people above.