AsyncSave

版本 v0.6.0·更新於 2026-09-23

Moves Valheim's world and character saves off the main thread, so saving no longer freezes the game.

模組介紹 作者原文

AsyncSave

AsyncSave moves Valheim's world and character saves off the main thread, so a save no longer

freezes the game. Nothing about the save format changes — the bytes it writes are the bytes

vanilla would have written.

The two halves are independent and neither syncs anything over the network, so the same DLL runs

unmodified on a dedicated server, a client, or a host, any mix is supported.

How it works

World save (server or host)

Vanilla's ZNet.SaveWorld clones every ZDO in the world into a fresh list, on one frame, and only

then hands it to the writer thread. AsyncSave replaces that with a coroutine that walks

ZDOMan's sectors across many frames, serializing each ZDO straight into a reusable buffer, while

the writer thread waits on it.

Character save (anywhere there is a local player)

Vanilla's minimap save writes 8.4 million individual booleans through a BinaryWriter, then

gzips the result and writes the.fch synchronously. AsyncSave bulk-copies the explored arrays

(two memcpys producing the identical byte sequence), then hands compression, hashing and the

file write to a background worker. The parts that touch Unity-owned or gameplay-mutated state stay

on the main thread.

The character save made on quit, logout and shutdown always uses the untouched vanilla path, so the

last save before the scene goes away is never in flight.

Automatic stand-downs

If the mod cannot safely run — it fails to patch ZNet.SaveWorld, the.fch layout is not the one

this build was written against, the revision hooks are missing, or the host is big-endian — it

disables the affected half or falls back to FullScan for that session only and logs why. Your

config file is never rewritten, so the setting you chose is still there next launch.

Requirements

BepInEx. No dependencies on other mods. Incompatible with SmoothSave (they patch the same paths);

BepInEx will refuse to load both.

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
AsyncSave-0.6.0.zip
檔案大小
52.9 KiB