[2.0.27] Low FPS High UPS for Server Client

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
ADHD_ADVERSARY
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Dec 19, 2024 10:16 am
Contact:

[2.0.27] Low FPS High UPS for Server Client

Post by ADHD_ADVERSARY »

My friend and I recently completed the Space Age DLC.
Unfortunately, as the base grew, I (client over Steam) noticed performance problems while my friend (Host over Steam) did not.
I am on Windows 10 and he is on Windows 11.

These issues included:
Low FPS while maintaining ~60UPS
Stuttering
Occasional rubberbanding

Ive tried running the same map in singleplayer and it works fine. The UPS and FPS are always the same. The lowest I can get it is ~45FPS/UPS and there is no stutter noticeable. We have also tried switching as host/client. He said he got the heavy stutter but did not notice the FPS drop. I may ask him to post screenshots and logs as well.
This issue is frustrating because no matter the changes I make, nothing seems to change. The FPS drops are the worst when I am doing something on a planet with a lot of bots.

The other issue may be connection. Although, we both run wired connections. A speed test using Ookla got me 149Mbps up 12Mbps down during our normal hours. I also used to have awful internet before space age. The only issues I had then were being dropped and rubberbanding in combat.

Running task manager and performance monitor showed that none of my hardware (GPU, CPU, RAM) was even close to being used fully. The CPU would maybe max at 50% for each core if I had other stuff running. I also tried moving the game from a SATA SSD to a m.2 SSD with no change.

PC Specs:
CPU: Intel i5-10600K
GPU: Nvidia RTX 3090
RAM: 32GB
PSU: EVGA 750 BP


In order to try to isolate the issue, I set up a server on my laptop (HP Elitebook 840 G3, Windows 10). I used the guide here:
https://wiki.factorio.com/Multiplayer
Only changes I made were loading the save and various descriptors and password.
Connecting to this server gave me the same problem. I ended up disabling the public server, disconnecting both PCs from the internet, and wiring directly to each other. These tests as seen from my client PC are shown below.

Singleplayer:
SP1.jpg
SP1.jpg (944.67 KiB) Viewed 520 times
SP2.jpg
SP2.jpg (780.41 KiB) Viewed 520 times
SP3.jpg
SP3.jpg (774.63 KiB) Viewed 520 times
singleplayer-121924.log
(9.22 KiB) Downloaded 11 times



Multiplayer:
MP1.jpg
MP1.jpg (946.95 KiB) Viewed 520 times
MP2.jpg
MP2.jpg (761.33 KiB) Viewed 520 times
MP3.jpg
MP3.jpg (775.38 KiB) Viewed 520 times
multiplayer121924.log
(13.14 KiB) Downloaded 10 times



The save can be found here: https://drive.google.com/drive/folders/ ... sp=sharing

Here are a list of some things I have tried and yet to try:
Tried:
Swapping Ethernet cables
Lowering Graphics settings
Restarting PC
Restarting Router
Running /c game.speed=0.9
Using ZeroTier for direct connection
Changing around host
Running dedicated server over LAN
Changing Server network settings
Changing windows network port settings

Yet to try:
Use Kill Command
Upgrade PSU
Buy new Ethernet cables
Unplug all but one monitor
Use Laptop as a client
Running a different save

I'm determined to get to the bottom of this. If I'm missing something or anyone has any suggestions please let me know. Thank You!
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2417
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: [2.0.27] Low FPS High UPS for Server Client

Post by Jap2.0 »

What CPU is your friend using?
There are 10 types of people: those who get this joke and those who don't.
ADHD_ADVERSARY
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Dec 19, 2024 10:16 am
Contact:

Re: [2.0.27] Low FPS High UPS for Server Client

Post by ADHD_ADVERSARY »

Jap2.0 wrote: Thu Dec 19, 2024 11:47 pm What CPU is your friend using?
Specs of my friend:

CPU: I9 13900K
GPU: RTX 4080
RAM: 32 GB
PSU: 1000 watt platinum
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2417
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: [2.0.27] Low FPS High UPS for Server Client

Post by Jap2.0 »

This may not explain all of what you've noticed, but how Factorio handles multiplayer explains some of it.

Every computer connected to a multiplayer game must run the full simulation. The goal is to do this 60 times per second, but in large bases this might not be possible. If a client can't simulate the game at the same speed as the server, it gets dropped. However, if it is just barely fast enough to keep up, the game may jump to simulating the next update right away, instead of having time to draw the previous one first.

That said: lowering the game speed should've fixed that.

(Also: substantial parts of Factorio only use one core*, so even if e.g. task manager shows 25% CPU usage on a 4-core CPU, that may be limiting performance.)

* Slight simplification
There are 10 types of people: those who get this joke and those who don't.
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 543
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: [2.0.27] Low FPS High UPS for Server Client

Post by Silari »

Jap2.0 wrote: Fri Dec 20, 2024 2:31 am That said: lowering the game speed should've fixed that.
He said they lowered it to 0.9 - that's roughly 54 ticks per second. His SP screenshot above shows he's dipping down to mid 40s, so it wouldn't have been enough to stop it, only decrease it some.
ADHD_ADVERSARY
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Dec 19, 2024 10:16 am
Contact:

Re: [2.0.27] Low FPS High UPS for Server Client

Post by ADHD_ADVERSARY »

Thank you all for the replies.
I was digging around some more and have some new ideas.

It turns out I never put Windows on that m.2 SSD. My system and game are actually on a SAMSUNG 870 QVO SATA III SSD 2TB.
Could it be possible there is something wrong with the drive enough that it starts slowing things down?
I notice this with other apps too. Pulling up YouTube on Firefox creates a small bump of lag.

I'm wondering if there is a way to run Factorio completely on a separate drive, data and all, or if it would be worth it to move my system to the m.2 SSD:
Crucial P1 2 TB
https://www.techpowerup.com/ssd-specs/c ... -2-tb.d119
ADHD_ADVERSARY
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Dec 19, 2024 10:16 am
Contact:

Re: [2.0.27] Low FPS High UPS for Server Client

Post by ADHD_ADVERSARY »

Jap2.0 wrote: Fri Dec 20, 2024 2:31 am This may not explain all of what you've noticed, but how Factorio handles multiplayer explains some of it.

Every computer connected to a multiplayer game must run the full simulation. The goal is to do this 60 times per second, but in large bases this might not be possible. If a client can't simulate the game at the same speed as the server, it gets dropped. However, if it is just barely fast enough to keep up, the game may jump to simulating the next update right away, instead of having time to draw the previous one first.

That said: lowering the game speed should've fixed that.

(Also: substantial parts of Factorio only use one core*, so even if e.g. task manager shows 25% CPU usage on a 4-core CPU, that may be limiting performance.)

* Slight simplification
I was thinking it wasn't before, but maybe this is the issue. Looking at the Resource Monitor, it seems #7 is the odd man out. My question now is how to read the data better. If the problem is the CPU, it starts getting performance issues well under 100%.
12-19-2024, 22-49-18.png
12-19-2024, 22-49-18.png (140.16 KiB) Viewed 396 times
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2417
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: [2.0.27] Low FPS High UPS for Server Client

Post by Jap2.0 »

ADHD_ADVERSARY wrote: Fri Dec 20, 2024 4:10 am Could it be possible there is something wrong with the drive enough that it starts slowing things down?
Rather unlikely. That should only impact loading times.
There are 10 types of people: those who get this joke and those who don't.
ADHD_ADVERSARY
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Dec 19, 2024 10:16 am
Contact:

Re: [2.0.27] Low FPS High UPS for Server Client

Post by ADHD_ADVERSARY »

Jap2.0 wrote: Fri Dec 20, 2024 11:28 pm
ADHD_ADVERSARY wrote: Fri Dec 20, 2024 4:10 am Could it be possible there is something wrong with the drive enough that it starts slowing things down?
Rather unlikely. That should only impact loading times.
Yeah. It did nothing. At least I can cross migrating that off the todo list.
Ive tried giving the game .exe priority and messing with other settings to no avail.
Looks like it's time to throw money at the problem. Unfortunately, it seems the best CPU for singlethreading in the same socket is the I9-11900K. I wonder how long good performance will last on that...
ADHD_ADVERSARY
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Dec 19, 2024 10:16 am
Contact:

Re: [2.0.27] Low FPS High UPS for Server Client

Post by ADHD_ADVERSARY »

----------------[SOLVED]-----------------------------------
Problem: Low RAM speed set by BIOS
Solution: Set RAM speed in bios from (Auto) to the actual rated speed

Well it took several days but I figured it out.
I was looking at the log again and found it weird that my RAM speed was so low.
12-20-2024, 19-31-04.png
12-20-2024, 19-31-04.png (24.71 KiB) Viewed 271 times
I figured I must've cheaped out years ago but then I took out a stick and looked at it.
12-20-2024, 19-31-54.png
12-20-2024, 19-31-54.png (7.18 MiB) Viewed 271 times
Turns out, my PC was just completely underclocking my RAM. I was able to go to the BIOS settings and adjust it.
12-20-2024, 19-33-15.png
12-20-2024, 19-33-15.png (10.88 MiB) Viewed 271 times
Now the game runs smooth as silk. I knew the devs would never be able to make such a beautifully optimized game run that bad.
I might still upgrade that CPU just to squeeze some power out of it. Rendering stuff seems to chip the fps a bit but multiplayer works pretty much without stutter now.
As always thank you all for your replies.
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2417
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: [2.0.27] Low FPS High UPS for Server Client

Post by Jap2.0 »

Huh, yeah that's really odd that your RAM was clocked so low. Factorio is pretty sensitive to memory speed/latency, I guess that's something I usually don't look for in a log because most of the time it has sane defaults. Glad that you figured it out though.
There are 10 types of people: those who get this joke and those who don't.
Post Reply

Return to “Technical Help”