Server lag
Impossible for me and my friends to play on our server due to connexion issue. Same for you ?
12:13 am, January 24, 2023
BGZ replied to Server lag January 29, 2023 @ 11:18:51 am PST
Yeah in a group of 7 players I've experienced disconnection issues: I can connect to friend's server but it drops me very soon after. Disabling crossplay might have helped a little but nothing conclusive. We also have lag spikes/low fps when many things are happening but I've previously just assumed that it might be hw limitation. Anyway, I've rebooted the game/steam or whole computer and then randomly the game decides that the connection is good and I can usually play the whole session without problems.
9:13 pm, January 29, 2023
0 comments
0 likes
northman007onTwitch replied to Server lag January 29, 2023 @ 5:30:45 am PST
Did you update the server? I had much lagg with 3 or more friends on my Linux server that was running at 30% resources. (20% CPU and 25%RAM i5-8G)
Since I updated this weekend, the server uses 37%RAM and the same CPU, all runs alot better. Almost fine I can say!
Send and receive limits are kind of an old thing, I never touched this and everyone have 100Kb+ up/down. Also, there is no P2P when using dedicated server setup, this is server<>client.
Update the server.
Hello there. I get this lagg even in singelplay. I play total war warhammer 3 today on the biggest map on highest. The map is like TW Warhammer 1 + 2 and 3 maps combined. And not a framedrop. I tryed alot of stuf. Like only use one screen. I did what Mozambique here say. Nothing works. I intsalled unstalled. Tryiend difrent SSD M.2.
I Thank you all for your inputs.
3:13 pm, January 29, 2023
0 comments
0 likes
Rocco replied to Server lag January 29, 2023 @ 1:05:44 am PST
Did you update the server? I had much lagg with 3 or more friends on my Linux server that was running at 30% resources. (20% CPU and 25%RAM i5-8G)
Since I updated this weekend, the server uses 37%RAM and the same CPU, all runs alot better. Almost fine I can say!
Send and receive limits are kind of an old thing, I never touched this and everyone have 100Kb+ up/down. Also, there is no P2P when using dedicated server setup, this is server<>client.
Update the server.
Since I updated this weekend, the server uses 37%RAM and the same CPU, all runs alot better. Almost fine I can say!
Send and receive limits are kind of an old thing, I never touched this and everyone have 100Kb+ up/down. Also, there is no P2P when using dedicated server setup, this is server<>client.
Update the server.
9:13 am, January 29, 2023
0 comments
0 likes
Mozambique here replied to Server lag January 26, 2023 @ 9:25:54 pm PST
this is short, me and my friends had the same issue for way to long
the guy who hosts the server, he needs to TURN OFF CROSSPLAY.
we did that and we have yet to have a crash
the guy who hosts the server, he needs to TURN OFF CROSSPLAY.
we did that and we have yet to have a crash
6:13 am, January 27, 2023
0 comments
0 likes
Defiant Dan replied to Server lag January 25, 2023 @ 10:55:14 am PST
The Core Problem is that in P2P .. all Players have to be Syncronized.
And you cant syncronize a ♥♥♥♥ pc with a good one, but you can force the good one to run slower...
So if one Guy on the Server lags around witth 10 fps.... everyone gets slowed down to slow motion ...
Make sure the People you play with have halfway compareable hardware and not 1 of them plaaying on a 2012 videocard or so
And you cant syncronize a ♥♥♥♥ pc with a good one, but you can force the good one to run slower...
So if one Guy on the Server lags around witth 10 fps.... everyone gets slowed down to slow motion ...
Make sure the People you play with have halfway compareable hardware and not 1 of them plaaying on a 2012 videocard or so
12:13 am, January 26, 2023
0 comments
0 likes
northman007onTwitch replied to Server lag January 25, 2023 @ 3:26:14 pm PST
The Core Problem is that in P2P .......
Still I play this on singleplay and get massive laggs in the forest and if 5 or more graylingsa are after me. I can play games like Total war Warhammer 3 and Shadow of war on max with no issue. Still this laggs alot. I have Intel® Core™ i9-10900KF CPU @ 3.70GHz, Rtx 3600, Ram 32, SSD and m2 disks,(tryed install the game on both) 500G/500G Ethernet.
12:13 am, January 26, 2023
0 comments
0 likes
northman007onTwitch replied to Server lag January 25, 2023 @ 9:14:12 am PST
The internet connection? Yes ..............
Thank you for your input. I mostly get this in the black forest. Also if 5+ graylings atack. I love the game so far when it is not that extremlag. One seckond I se 5 grayings. Then bam bam bam bam bam with lagg. Then I was surrounded and killed. It kips laggs. I hope they can fix that witout removing stuff from the world.
Have a good one Gisbert!
6:13 pm, January 25, 2023
0 comments
0 likes
Gisbert replied to Server lag January 25, 2023 @ 2:42:20 am PST
The dedicated server lag problem has "nothing" to do with your equipment. I Can play Total war Warhammer 3 and Shadow of war on max with no issue. Still this game laggs both on singleplay and on server. I am not sure why. My guess, the game is still on beta. So it is bad optimized. Works for some, and not for me with I9 CPU, GPU rtx 3600, Ram 32, SSD and m2 disks,(tryed install the game on both) 500G/500G Ethernet.
The internet connection? Yes - but that's the problem with peer-to-peer driven server models. If just one player has a potatoe connection, you will all notice it as soon as this player hits your area ingame.
But I confirm: Since Mistlands you have additional stuttering too (which has nothing to do with the lag problem I described), maybe caused by world save. I have an EVO Plus SSD on PCIe slot and stuttering for world save should be no issue. But everyone has this micro stuttering since Mistlands. Seems a known problem too - meanwhile.
Valheim is made with Unity. Unity itself is a construction kit tool like Photoshop. Anyone can use Photoshop to edit images, even if they don't have a clue how to take a photo. But you can master Photoshop and other people can't tell a difference / so the tool is extremely powerful in your hands and you can make a lot of money with it, even if you still never took a good picture with your camera. I would say the devs mastered Unity, but they aren't the best programmers. Maybe that could be the problem here.
12:13 pm, January 25, 2023
0 comments
0 likes
northman007onTwitch replied to Server lag January 24, 2023 @ 7:49:53 am PST
I Can play Total war Warhammer 3 and Shadow of war on max with no issue. Still this game laggs both on singleplay and on server. I am not sure why. My guess, the game is still on beta. So it is bad optimized. Works for some, and not for me with I9 CPU, GPU rtx 3600, Ram 32, SSD and m2 disks,(tryed install the game on both) 500G/500G Ethernet.
6:13 pm, January 24, 2023
0 comments
0 likes
Gisbert replied to Server lag January 24, 2023 @ 4:55:07 am PST
No, you are the one here without a clue. I had more than one Valheim server up and running. Rewriting from ....scratch???
Boy, you have absolutly no clue what youre talking about. Stop spreading such nonsense - theres kids that could believe this. *shakes head*
Valheim uses a peer-to-peer driven server model for data transfer, which is hardcoded - yes we are in 2023 and not using a "client-server-model" in a multiplayer co-op game.
For explanation, even without script knowledge: The player who is first in a "chunk" becomes a kind of "server". The server you set up via provider does not handle the calculation of damage values or enemy spawns, the player client does. This is recalculated for each "chunk".
This works relatively okay as long as you play with 1-2 friends. But as soon as there are 4-5 people in one chunk, there is a bottleneck regarding the send/receive limits query, because all players forward information to a "designated server" and this server has to return the data for reconciliation to all players. All information is capped at one feed.
If you receive damage for example, one of the group members in one area has to do all the calculation, because the dedicated server itself doesn't.
When information gets stuck at the bottleneck, there are phenomena such as no access to a specific chest for everyone or a cart/enemy sinks into the ground. If the player in question goes offline, anyone can access the chest again, even if the calculation of the chest is done by the "main server" itself.
Valheim devs have "changed" some of the code in a patch some time ago, but it has done little to no good and they themselves have officially admitted that they can't solve the problem this way. But it's been a while. What the devs have done is to implement a kind of hybrid model, which shoots important information at a data jam through, so that at least damage calculation has priority, but as a counter, enemys fall more often in the ground or lagging through the area.
Everyone playing in bigger groups has noticed such things, even if the data seems not much to transfer. You can edit the send/receive limit cap on your server .dll via spydns to give a little higher cap. Which helped a lot for my people. On the other hand you must not set it too high, so information will get lost and you make it worse.
The guide I sent you does fine with all I said here and is the best method to make Valheim in big multiplayer sessions a little bit more enjoyable. But it won't fix the problem itself. The problem is the code as a whole, which must be rewritten to a client-server model to solve this problem as a whole.
This problem is very well known for anyone who is a bit in the know and often sets up servers or has knowledge of what he is doing at all. The devs try to ignore this kind of problem for whatever reason. I think the most people play with 1-2 other players, so they won't run in much trouble at all.
But if the OP is someone who has 4-5 friends playing with him, he will have extreme lag spikes from time to time and the game will be almost unplayable, even vanilla without mods, in direct comparison to today's 2023 standard. Every other player added, every stop forward in the game, every data package more sent makes it worse. Simple as that. Mistlands alone has raised the data which needs to be send a lot. And every update they add will do no favour to the peer-to-peer driven code of their game.
I spent weeks in the code to figure out whats going on or how to fix it, I hope you understand now - and stop accusing others of ignorance when you obviously have no idea at all.
3:13 pm, January 24, 2023
0 comments
0 likes
Zothen replied to Server lag January 24, 2023 @ 3:27:33 am PST
Rewriting from ....scratch??? To solve the server lag, the devs have to rewrite the code from the scratch.
To be honest... ever thought that's why Mistlands took so long, but they haven't touched the code since ages.
Boy, you have absolutly no clue what youre talking about. Stop spreading such nonsense - theres kids that could believe this. *shakes head*
12:13 pm, January 24, 2023
0 comments
0 likes
ManAnt replied to Server lag January 24, 2023 @ 3:47:35 am PST
lol
12:13 pm, January 24, 2023
0 comments
0 likes
Gisbert replied to Server lag January 24, 2023 @ 12:18:26 am PST
Try this: Impossible for me and my friends to play on our server due to connexion issue. Same for you ?
https://jamesachambers.com/revisiting-fixing-valheim-lag-modifying-send-receive-limits/
Read the page step by step to understand the issue.
Also read the comment section below - there is much additional information.
The problem is hardcoded and can not be solved this way, but you can make it a lot more enjoyable by editing the server .dll or understanding the problem and may make some adjustments to your groups playstyle.
To solve the server lag, the devs have to rewrite the code from the scratch.
To be honest... ever thought that's why Mistlands took so long, but they haven't touched the code since ages.
9:13 am, January 24, 2023
0 comments
0 likes
Xenomorph replied to Server lag January 23, 2023 @ 1:55:54 pm PST
some severs yes but some severs no its kind of random
12:13 am, January 24, 2023
0 comments
0 likes
Xenomorph replied to Server lag January 23, 2023 @ 1:57:03 pm PST
mite help if on cloud. helped me from crashing so much
12:13 am, January 24, 2023
0 comments
0 likes