Page 1 of 1

UPS related lag spikes.

Posted: Wed Jun 19, 2019 7:46 pm
by andre2
Hi,
I have lag spikes. And then from one second to another, UPS jumps back to 60. I have a base in Krastorio mod, which is maybe 1/7 of what I had in 0.16 with Pyanodon Mod. Also when I restart my computer, for some time I have 60 UPS.
Any ideas what it could be?

EDIT: I monitored the CPU in Windows task manager and it wasnt hitting 100%.

Re: UPS related lag spikes.

Posted: Thu Jun 20, 2019 6:09 pm
by Jap2.0
The CPU probably won't show as hitting 100%. Factorio is largely single-threaded, so you could still be cpu-bound if you have 4 cores and task manager shows 25-30% usage. Factorio can also be bottlenecked by memory latency.

If you want more specific advice, post a log (%appdata%/Factorio/factorio-current.log by default) and a screenshot with the debug (F4) options show-fps and show-time-usage enabled.

Re: UPS related lag spikes.

Posted: Sat Jun 22, 2019 11:43 am
by andre2
I still need to make the screenshot for when the issue is there.

Re: UPS related lag spikes.

Posted: Mon Jun 24, 2019 5:41 pm
by andre2
Hi,
sorry that you had to wait.
beneath other reasons I also had to figure out how screenshots work. I thought the button was PRINT.
I attached some recent screenshots and the current *.log.

Re: UPS related lag spikes.

Posted: Mon Jun 24, 2019 6:16 pm
by mmmPI
From the picture, the things that are causing this seems to be Transport Line , Fluid manager and Entity updates, which seems normal in the case of a huge base are those are the things that usually takes the more time to be processed when everything is fine, you want those to be the limiting factor, but it shouldn't spike as much.

I have never used Krastorio, and Pyanodon's mods it was many updates ago, so i have no guess at what could cause that, you could provide a save-file (located in the saves folder in the Application directory) so anyone can have a look at what on the map could create that, maybe a configuration of belts/splitters/pipes/inserters that you didn't used before that cost a lot of CPU, and you happend to have it blueprinted everywhere because it serve another purpose, that's often why i end on the forum :)

Edit: After second look , we can't really read the upper part of the time usage , that is what tells if the games slows because of the graphical aspect, not processing what is going in the factory, it could also have an impact, have you tried with different graphical settings ?

Re: UPS related lag spikes.

Posted: Mon Jun 24, 2019 6:38 pm
by andre2
Ok, so the GUI elements block the info.
I´ll try around to make the info visible.

Re: UPS related lag spikes.

Posted: Mon Jun 24, 2019 10:29 pm
by andre2
Her is the save. Let me know, if you need the mod list.

Re: UPS related lag spikes.

Posted: Tue Jun 25, 2019 11:47 am
by mmmPI
I have not experienced spikes when I tried the save, my old laptop could run it at around 45 fps/ups and it was pretty stable with those settings:
20190625120410_1.jpg
20190625120410_1.jpg (337.3 KiB) Viewed 7094 times
I have no further clues :(

Re: UPS related lag spikes.

Posted: Tue Jun 25, 2019 11:50 am
by Loewchen
I would look at the CPU/GPU temps when playing.

Re: UPS related lag spikes.

Posted: Tue Jun 25, 2019 12:46 pm
by andre2
It starts out stable for maybe 30 minutes. Maybe it is indeed a heat issue.

Re: UPS related lag spikes.

Posted: Tue Jun 25, 2019 1:08 pm
by mmmPI
I use http://www.almico.com/speedfan.php to monitor the temperature on my laptop ( from 2009 ). It has a option to make a chart for the temperature of the CPU and GPU for the last 15 minutes, you can also make it beep or increase fan speed when it reach a threshold, but i usually prefer playing with /c game.speed = 0.8 or even lower because i don't like the noise of the fan.

Also with the power saving options, i have reduced the maximum frequency of the CPU, same thing as when you are on low battery, this prevent it from overheating and doesn't show in game when speed is also reduced.

It is no magic but it may get rid of the "spikes" that are frustrating.

Re: UPS related lag spikes.

Posted: Tue Jun 25, 2019 1:50 pm
by andre2
That is interesting. I have a Lenovo E320 laptop. This one and other Lenovo Laptops are known for having bad fan control.
I use a software called TPFanControl which helps alot. It adds 7 different fan speeds to the laptop. The laptop itself only has 3 or so.
This software helps alot with noise and heat control as it rises fan speed earlier and can go 100% earlier than the basic Lenovo setup.

I will take aother look into Speedfan. I think I have tried it before 2 years ago but was not capable to use it well.

Re: UPS related lag spikes.

Posted: Tue Jun 25, 2019 2:56 pm
by andre2
I think I can remove maybe 5000 of belt by using Deadlock´s Beltboxes which stack items into stacks of 5. So a x45 belt becomes a x225 belt. It is like work, as you have to do it manually for every installment which needs iron plate, copperplate, green chips and so on.

Re: UPS related lag spikes.

Posted: Tue Jun 25, 2019 3:15 pm
by boran_blok
the question then becomes, how much UPS does the stacking and unstacking create?

Re: UPS related lag spikes.

Posted: Wed Jun 26, 2019 11:14 am
by Zavian
Loewchen wrote: Tue Jun 25, 2019 11:50 am I would look at the CPU/GPU temps when playing.
Yeah that was one of the possibilities that immediately occurred to me looking at the log + screenshots. Another was windows running short on ram and swapping to disk. From memory there have also been some issues with Intel HD graphics 3000 that the devs (Posilla ?) have been working on that might also be relevant.