balrond core optimizer
Mod optimize logic calculations in multiple ingame components to lessen CPU burden
模組介紹 作者原文
Balrond Core Optimizer
Client-side CPU, presentation and query optimization for Valheim
Current documentation target: Balrond Core Optimizer 0.2.0
Balrond Core Optimizer (BCO) reduces repeated CPU work that Valheim performs for visual state, equipment presentation, lights, effects, audio and frequently queried world-object lists. It is designed primarily for large bases, dense modded worlds and scenes containing many active components.
BCO follows a conservative rule: do not change gameplay authority just to gain frames. It avoids combat, AI, networking authority, structural integrity, dropped-item physics and production timing. When a result is already known and unchanged, BCO skips redundant presentation/query work. More invasive cadence and scheduler replacements are separated behind Conservative Mode.
Join Balrond's Den · All Balrond mods · Support development on Ko-fi · Commission inquiries
What does BCO optimize?
Static and network-backed visuals
- Armor Stand visual revision gate — skips repeated ArmorStand.UpdateVisual reconstruction while the relevant network-backed data revision is unchanged.
- Item Stand visual revision gate — avoids rebuilding the same attachment visual when its network-backed state has not changed.
- Ward / PrivateArea status visual gate — avoids repeated SetActive and emission writes while preserving vanilla flash re-arming.
- Portal stable emission gate — portal transitions remain full-rate; once the fade reaches a stable endpoint, BCO stops rewriting the same emission color every frame.
Aggressive optional static optimization
- Armor Stand cloth throttling — replaces the vanilla every-frame cloth-distance decision with a throttled squared-distance check.
This feature is blocked by default while Conservative Mode = true.
Character presentation
- VisEquipment equipment signature gate — avoids repeated equipment reconstruction checks when equipped-item state is unchanged.
- VisEquipment color signature gate — avoids repeated skin/hair material color writes when colors, model and generated visual instances are unchanged.
The color gate treats a player model change as an invalidation event, so unchanged RGB values are still re-applied to a newly selected model.
Aggressive optional character optimization
- VisEquipment whole-player revision gate — can skip the entire UpdateVisuals pass while the player visual revision is unchanged, avoiding UpdateBaseModel plus nested equipment/color work.
This feature is blocked by default while Conservative Mode = true.
Production presentation
- Smelter visual-state gate — caches only presentation/animation state. Fuel, ore, roof checks, smoke simulation and production remain vanilla.
- Fireplace visual-state gate — skips stable visual tiers while preserving the vanilla wet-owner toggle/RPC path when it can run.
- Cooking Station visual signature gate — caches slot/status/fire/fuel-visible presentation. Cooking timers and fuel consumption remain vanilla.
Aggressive optional station optimization
- Crafting Station idle dormancy — vanilla CustomUpdate always executes first. Only after the vanilla timers reach their idle thresholds may BCO remove a fully idle station from the CraftingStation updater source. PokeInUse and extension queries wake it again.
This feature is blocked by default while Conservative Mode = true.
Continuous presentation and effects
The conservative profile keeps low-risk endpoint/no-op gates available:
- Cart/Vagon idle tether gate — a detached cart whose tether is already hidden can skip redundant LateUpdate work, with periodic vanilla reconciliation.
- EffectFade stable-endpoint gate — the component stays enabled; BCO skips terminal no-work frames and periodically lets vanilla reconcile.
- MaterialFader stable-endpoint gate — the component stays enabled; direct field changes from other mods remain observable on the next frame.
- ZSFX idle fast gate — ZSFX instances remain registered in Valheim's updater. BCO only skips terminal
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。