Valheim

Valheim

HienoKaveri Dec 15, 2022 @ 7:56am
2
Server side simulation to remove lag
Hi all,

We have a group of people who play on my dedicated server, and periodically we get huge lag for everyone because of how the Valheim server is designed. TLDR; it hands off world simulation to the first client to enter a specific area. If they happen to be on a cr4ppy connection or potato computer (which still do exist today) everyone suffers. Issue is not with the server itself, it's a beefy 5GHz PC with fiber net.

There was a server side mod to combat this, https://www.nexusmods.com/valheim/mods/863
Sadly it seems to have been abandoned by the dev over a year ago.

So this just raises questions.. like.. WHY? We don't need every client mimicing server in the game, that's what servers are for. There needs to be an option in the ded server config to dedicate all simulation to the server, everyone benefits.

Or has anyone got some other solution beside the mod? Just have friends with beefy computers and connections only?
Last edited by HienoKaveri; Dec 15, 2022 @ 3:57pm
< >
Showing 1-6 of 6 comments
Gisbert Dec 15, 2022 @ 8:04am 
Originally posted by HienoKaveri:
So this just raises questions.. like.. WHY? We don't need every client playing server in the game, that's what servers are for. There needs to be an option in the ded server config to dedicate all simulation to the server, everyone benefits.
It's because Valheim runs a peer-to-peer driven server model which is hard-coded. I know it's insane, but it's true. I spended months to find a fix in the dll's. The devs would have to rewrite the code from the scratch to fix this issue.

Best advice I got for you is to google "valheim server lag" and you find not a fix but a small tweak that helps most. It will not remove the problem, just reduce it a bit. Thank me later.
Rungar Dec 15, 2022 @ 8:37am 
imo valheim shouldnt be played with more than 4 people. Two or three is ideal.
NaCly Dec 15, 2022 @ 11:16am 
I don't know how this post isn't more popular.

Do they not understand that failing to fix this is going to kill the long term interest in the game? I would give you ten thumbs up if I could. My recommendation is to leave a negative review of the game that says how much you love it but that until they fix this aspect you will be leaving the thumbs down. That's what I did.
SlowDancer Dec 15, 2022 @ 1:55pm 
Did devs ever talked about the lag situation for multiplayer worlds?
HienoKaveri Dec 16, 2022 @ 2:11am 
Originally posted by Gisbert:
Best advice I got for you is to google "valheim server lag" and you find not a fix but a small tweak that helps most. It will not remove the problem, just reduce it a bit. Thank me later.

Will thank you for pointing in the general direction, but if you mean the DLL tweak for data rate, it seems that parameter is no longer there in this version of the game. I downloaded the dnSpy thingy and did as told, but it ain't there.
benz145ux Dec 22, 2022 @ 9:15am 
100%

Running a server with around 10 people and frequently people complain of major lag, usually due to things being handed off to someone's computer/connection that is not up to the task. The distributed model is a neat idea and in theory works great, but dedicated servers should definitely have the option to keep all simulation on the server itself.
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Dec 15, 2022 @ 7:56am
Posts: 6