Valheim offers all the necessary tools for players to set up their own servers and enjoy this experience together. However, many have complained on forums of server lag, which considerably cuts down on the gaming adrenaline:
I bought mine from a site that I don’t want to mention by name for now, and we have built a medium-sized base. Nothing absolutely huge and massive, and we are now starting to experience MAJOR server-side lag. Chests won’t open, enemies run in place, etc.
The issue arises, experienced players say, because the server is limiting the outbound bytes/seconds to each client.
How do I bypass Valheim dedicated server lag?
- Close the hosting server.
- Download all the game files from
- Download this dnSpy tool.
- Open the assembly_valheim.dll file in valheim_Data or valheim_server_Data.
- Find ZDOMan inside the assembly.
- Find m_dataPerSec, right-click on it, choose Edit class and change the value to something larger. Adding just a 0 might considerably improve speeds.
- Click Compile in the lower right of the class editor window.
- Go to File and choose Save Module (not CTRL+S).
- Restart the server and start playing.
- Check if the speeds have improved in the F2 menu.
Players noted that rasing the server send speed limits from 64kb/s to 94kb/s improved things.
Additionally, they also recommend increasing the send limits on the client’s side as well.
It is important, though, to change the server’s limits first, and then attempt a change on the client’s side. Also, the Managed file needs to be downloaded completely.
As noted by the players, this is only a workaround. However, the game developers have taken note of the issues and will most likely work on a stable fix in future releases.
This post was written by Sinziana Mihalache and was first posted to WindowsReport