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?
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?
12:13 pm, December 16, 2022
benz145ux replied to Server side simulation to remove lag December 22, 2022 @ 9:15:49 am PST
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.
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.
6:13 pm, December 22, 2022
0 comments
0 likes
NaCly replied to Server side simulation to remove lag December 15, 2022 @ 11:16:58 am PST
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.
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.
12:13 pm, December 16, 2022
0 comments
0 likes
SlowDancer replied to Server side simulation to remove lag December 15, 2022 @ 1:55:54 pm PST
Did devs ever talked about the lag situation for multiplayer worlds?
12:13 pm, December 16, 2022
0 comments
0 likes
HienoKaveri replied to Server side simulation to remove lag December 16, 2022 @ 2:11:52 am PST
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.
12:13 pm, December 16, 2022
0 comments
0 likes
Gisbert replied to Server side simulation to remove lag December 15, 2022 @ 8:04:39 am PST
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. 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.
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.
12:13 pm, December 16, 2022
0 comments
0 likes
Webbman replied to Server side simulation to remove lag December 15, 2022 @ 8:37:12 am PST
imo valheim shouldnt be played with more than 4 people. Two or three is ideal.
12:13 pm, December 16, 2022
0 comments
0 likes