Page 1 of 1

Lags after the map view

Posted: Wed Dec 11, 2024 7:48 pm
by Satoshi
Good day! :3

Being playing for a while, and noticed some stuttering in a particular place.
The thing is, that is only happening in the space age new game save, even almost empty one (like 5 MWatt base, which I attached in the save game file).
I loaded my old base from Factorio 1.0 (with all new space age default mods enabled) which is bigger (like 5 GWatt), and there all run just fine! I could not reproduce that issue.
So, this is not a big base problem.
I suspect that has something to do with the logic combinators, in Factorio 1.0 I was not using them, and now I do that a lot.

What is the problem: AFTER I close the map view game start to lag seriously, like "stuttering", "spiking", or how is that called. It shows around ~40 FPS (UPS also can be low at that time, but more rarely). But it does not feels like steady 40 FPS, it feels much worse, like several unlucky frames got 0.5 second delay or something.
After several seconds FPS returns to 60 and stays there until I open the map again. On the map itself it also looks ok (60 FPS).

I did not noticed any spikes in the CPU usage or GPU usage or SSD usage at those moments, its all relatively low, GPU about 10% (30 watts from 300 watts), CPU about 50% of a single core (like 4% total load), SSD load is just zero. I have nothing else running in the background, no thermal issues or...
I have win 10, Ryzen 5 3600x, RTX 4080, 64 GB DDR4 3200, some decent SSD, have not noticed any significant issues with other games recently.

What should I do here? Some detailed performance statistics? What is happening? Where do I look?

UPD: that save has some weird stuff done using the combinators. But I also noticed the same issue on another save (slightly bigger one), but without any "unusual" combinator usage. I am not sure, could it matter HOW I use the combinators?

Re: Lags after the map view

Posted: Wed Dec 11, 2024 8:24 pm
by Loewchen
Post the log and screenshot with these specific debug settings: 68653

Re: Lags after the map view

Posted: Wed Dec 11, 2024 9:38 pm
by Satoshi
Sure!

I did enable those options: show-fps, show-time-usage, show-gpu-time-usage, show-multiplayer-waiting-icon, show-multiplayer-statistics, hide-mod-guis, but it seems that the last 3 have not had any visible effect. Hope that is expected because of a singleplayer mode and no mods.
Here are 4 screenshots: The ones with less than 60 FPS are the ones with the problem, which is observed a couple of seconds after I close the map view. The ones with the 60 FPS captured after the performance returns to normal. Each pair of screenshots are taken on a separate playthrough with an independent base designs. The first one is the one from the save file from the previous post.

An the log file, yes.

Re: Lags after the map view

Posted: Wed Dec 11, 2024 9:44 pm
by Satoshi
Unless you have reason to believe your problem is caused by a bug, report it in Technical Help instead please.
Well, I have reason to believe that could be considered a bug, because lag is occurred only after the specific action when nothing obvious that could hurt performance is here...
But I still posted it in Technical Help, sorry =)

Re: Lags after the map view

Posted: Wed Dec 11, 2024 9:53 pm
by Loewchen
It's all lost in the memory flip which usually means the driver is slow or a vsync problem. First make sure to disable G-sync for factorio in your driver, if this does not work try disabling vsync in the game settings as well.

Re: Lags after the map view

Posted: Wed Dec 11, 2024 9:57 pm
by Satoshi
After looking at those stats I can see several options that behave similarly when my issue is occurred: frame, draw-engine, fog, light-composition.
When the things are normal, they tend to show 3 relatively similar numbers. And when there are lags, they show second number significantly less then first, and the third significantly greater then the first.

Re: Lags after the map view

Posted: Wed Dec 11, 2024 9:58 pm
by Satoshi
Loewchen wrote: Wed Dec 11, 2024 9:53 pm It's all lost in the memory flip which usually means the driver is slow or a vsync problem. First make sure to disable G-sync for factorio in your driver, if this does not work try disabling vsync in the game settings as well.
Thank you, will be trying that!