Multiplayer Lag Problems

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.
ThatOhio
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Nov 23, 2024 12:58 am
Contact:

Multiplayer Lag Problems

Post by ThatOhio »

I have been playing multiplayer with a group of friends since the launch of SA. At most there are 5 of us on at a time, with the vast majority of the time only being 2-3 at most. While we have sunk a lot of hours into the save so far I do not believe we have built anything on a scale that would cause any of our machines to lag (especially compared to what I've seen online).

Recently (actually right after we finally went to Aquilo, hard to say if related but it was the same day) we have been seeing large FPS drops that happen rather frequently.

The server is currently running the headless binary on a linux machine I have lying around. It is running a 5950x with 64gb of RAM. The OS and server files live on a gen5 NVMe SSD.

My current gaming PC is a 7950X3D with 96gb of RAM. I have an RTX 4090.

The other players have gaming PC's either comparable to mine or not that far off, however, I see the lag even when I am the only player connected to the server (and am connecting via LAN).

Here are a couple screenshots I gathered a moment ago:
- https://imgur.com/pAtsAFQ This one is the Entity Time with an FPS dip present.
- https://imgur.com/lOf5AP0 This one is a similar FPS drop with only the GPU times selected
- https://imgur.com/IEHPwy1 This is one with the debug options enabled based on the performance problems and how to report them pinned post.

I also have this screenshot which is potentially one of the issues, one of our players decided to have a spidertron reveal a large area of Fulgora, we didn't notice until it was this big or we would have stopped him. https://imgur.com/KWgDKCq . It DOES feel like the lag corresponds with the lightning storms on fulgora, but it does happen when no one is on that planet / that planets map view.

I attached a save file and the log file from when i was gathering these screenshots. All I did was stand where I was standing in these screenshots and saw rather frequent dips in FPS. The UPS was stable the entire time.

I would love any assistance, as this save has been really fun with my friends, but the lag only seems to get worse when we play together on the save.

EDIT: For some reason my save is not uploading as an attachment (its only 150mb). I've uploaded it to dropbox here: https://www.dropbox.com/scl/fi/xrd9m935 ... zn6j2&dl=0
Attachments
factorio-current.log
(15.36 KiB) Downloaded 15 times
Last edited by ThatOhio on Sat Nov 23, 2024 6:00 pm, edited 2 times in total.
Atraps003
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Thu Jan 04, 2018 6:34 am
Contact:

Re: Multiplayer Lag Problems

Post by Atraps003 »

The save file is missing from attachments.
ThatOhio
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Nov 23, 2024 12:58 am
Contact:

Re: Multiplayer Lag Problems

Post by ThatOhio »

Atraps003 wrote: Sat Nov 23, 2024 2:20 pm The save file is missing from attachments.
My bad! I had attempted to upload it with the original post but it must not have uploaded for some reason, I've edited the original post with a dropbox link as I am unable to attach it for some reason (it is only 150mb so should be fine file size wise so not sure what was going on)
Atraps003
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Thu Jan 04, 2018 6:34 am
Contact:

Re: Multiplayer Lag Problems

Post by Atraps003 »

It looks like this save is approaching the limits of what factorio can do in 16ms on current computers. In multiplayer fps is sacrificed for ups to keep up with the server. The headless server has less overhead than factorio with graphics thus it's easier for the server to maintain 60 ups while your computer which runs factorio with graphics can only maintain 60 ups if fps is sacrificed. This is why you see 60 ups but lower than 60 fps.

On this save I got ~40 ups using an old cpu. After destroying all the enemies on vulcanus performance increased to ~50 ups.

/c for key, entity in pairs(game.surfaces["vulcanus"].find_entities_filtered({force="enemy"})) do entity.destroy() end
User avatar
BlueTemplar
Smart Inserter
Smart Inserter
Posts: 3234
Joined: Fri Jun 08, 2018 2:16 pm
Contact:

Re: Multiplayer Lag Problems

Post by BlueTemplar »

150 Mo is quite big already. Factorio forums are pretty generous for allowing file sizes more than 10 Mo to random registered users.

Slowing down game speed might be an alternative :
mods
commands
I also have this screenshot which is potentially one of the issues, one of our players decided to have a spidertron reveal a large area of Fulgora, we didn't notice until it was this big or we would have stopped him. https://imgur.com/KWgDKCq . It DOES feel like the lag corresponds with the lightning storms on fulgora, but it does happen when no one is on that planet / that planets map view.
In case this becomes an issue (save size, RAM...), there are like solutions for this : mods or commands.
Last edited by BlueTemplar on Sat Nov 23, 2024 9:22 pm, edited 2 times in total.
BobDiggity (mod-scenario-pack)
ThatOhio
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Nov 23, 2024 12:58 am
Contact:

Re: Multiplayer Lag Problems

Post by ThatOhio »

Atraps003 wrote: Sat Nov 23, 2024 8:19 pm It looks like this save is approaching the limits of what factorio can do in 16ms on current computers. In multiplayer fps is sacrificed for ups to keep up with the server. The headless server has less overhead than factorio with graphics thus it's easier for the server to maintain 60 ups while your computer which runs factorio with graphics can only maintain 60 ups if fps is sacrificed. This is why you see 60 ups but lower than 60 fps.

On this save I got ~40 ups using an old cpu. After destroying all the enemies on vulcanus performance increased to ~50 ups.

/c for key, entity in pairs(game.surfaces["vulcanus"].find_entities_filtered({force="enemy"})) do entity.destroy() end
Interesting, I didn't feel like anything we've built is pushing limits based on some of what I've seen, and it doesn't feel like my current PC is really taxed that much. Unfortunately we're trying to finish out the achievements so I cannot run console commands at the moment, but I may revisit here soon as we're quite close to closing out the final achievements.
its a me
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Fri Jul 26, 2024 7:37 pm
Contact:

Re: Multiplayer Lag Problems

Post by its a me »

If you want to test console commands you could create a copy of the save file.
xarokk
Burner Inserter
Burner Inserter
Posts: 7
Joined: Wed Oct 30, 2024 5:48 pm
Contact:

Re: Multiplayer Lag Problems

Post by xarokk »

I'm having FPS drop problems too in Aquilo.

Everything worked fine until I landed on Aquilo. The game was running smoothly at 60 FPS, but after landing on Aquilo and sending some items there from the space platform, the FPS dropped to 5-10, and the game became unplayable.

If I load the save game before sending some items to Aquilo, the game runs fine at 60 FPS, but after sending some items, the FPS abruptly decreases to 5-10
Post Reply

Return to “Technical Help”