BetterNetworking Valheim

版本 v2.3.4·更新於 2026-02-03

Improve multiplayer performance using compression, queue size, send rate, and other features.

模組介紹 作者原文

This is just a rebuild of CW_Jesse's mod for Valheim 0.221.10.

Now compatible with Mistlands!

This mod greatly improves multiplayer performance. If you find this mod works as advertised, please endorse it!

Default settings should be fine for most people.

_Settings (simple)_

  • If your lag is fixed, change nothing. You're good to go. Have fun!
  • If NPCs are skipping, reduce everyone's update rate to 75% and increase their queue size to 48 KB.
  • If a player is skipping, reduce their queue size to 32 KB. If they're already at 32 KB, reduce their update rate.
  • If your server bandwidth is fantastic, try increasing its queue size to 80 KB.

_Settings (advanced)_

  • Queue size increase: Sends more data, but deprioritizes "important" objects and can overload a player's internet.
  • Update rate reduction: Sends data less often; if a person's internet is overloaded, this adds a little bit of lag in exchange for getting rid of a lot of lag.
  • Queue size->32 KB / update rate->100%: up to 256 KB/s per player. [Default]
  • Queue size->80 KB / update rate->100%: up to 640 KB/s per player.
  • Queue size->32 KB / update rate->50%: up to 128 KB/s per player.

_Useful information about Valheim_

  • ALWAYS quit the game using the in-game menu (NOT Alt+F4, closing console, etc.) Doing otherwise can cause issues. This is a problem with vanilla Valheim.
  • The player who arrives in an area first is responsible for lag there. Ideally, the people with the best internet should be ahead of the pack or first through a portal, at least until Better Networking 3.0.
  • Valheim multiplayer performance appears to better with crossplay disabled.

_Keep in mind_

  • Compression only works between computers with Better Networking.
  • Likely incompatible with (and better than) other networking mods.
  • Dedicated servers will not apply changes until restarted.

You must use the join code or external* IP when connecting to servers on the same network when using crossplay.

_Features_

  • crossplay enabled: improves compression speed (55x faster) and compression ratio
  • crossplay disabled: adds network compression
  • new connection buffer (AKA "ZDO buffer", prevents data loss)
  • change outgoing queue size
  • change outgoing update rate
  • change min/max send rates in Steamworks (AKA crossplay disabled)
  • dedicated servers: ability to enable/disable crossplay through Better Networking
  • compatible with Linux
  • compatible with players not running the mod

_Better Networking links_

  • Please provide feedback!
  • Please examine my code!
  • Please report bugs!
  • Please endorse!
  • Please endorse!

_Educational links_

  • Technical explanation of Valheim's networking by u/SleepMyLittleOnes
  • Technical information and discussions on desync/lag in Valheim on the blog of James A. Chambers

_Thank you_

  • Joshua Woods (Cheb) for contributing code (Check out ChebsNecromancy!)
  • William Seligmann (jsza) for contributing code
  • nightshade221 (Max) for being a patron and providing a community!
  • Frostsorrow for QA and community assistance!
  • Tquilarius for being a patron!
  • ALo, ErDu, Tatsuya009, Alexander3054, Dskaggsgv, vi0lation, Ersan191, WhiteDingoX5, xdhara, ImpulsiveMind, nevcairiel, and doubletroubleswtor for valuable feedback and troubleshooting!
  • Oleg Stepanischev for ZstdSharp
  • Smoothbrain for Network

If you've benefited from this mod and want to see more features implemented, please endorse it! Or if you're feeling particularly generous, donate here or on Patreon!

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
BetterNetworking_Valheim-2.3.4.zip
檔案大小
390.3 KiB