You are viewing a potentially older version of this package. View all versions.
sighsorry-SkadiNet-1.1.7 icon

SkadiNet

Reduces network pressure and desync with peer-aware pacing, safer ownership recovery, payload reduction, negotiated compression, optional dungeon-layer filtering, and client-side stutter protection.

Date uploaded 5 days ago
Version 1.1.7
Download link sighsorry-SkadiNet-1.1.7.zip
Downloads 46
Dependency string sighsorry-SkadiNet-1.1.7

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2360 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2360

README

SkadiNet

SkadiNet

Network optimizations for Valheim multiplayer.

Features

  • World updates: Spreads send work across players, with queue limits and a send-time budget.
  • Network traffic: Reduces tiny movement updates and redundant updates from idle creatures, with negotiated packet compression.
  • Processing overhead: Reduces allocations while reading, writing and comparing world data, RPC call costs and repeated world-update lookups.
  • Save reliability: Marks accepted persistent world-object updates for the server's next save.
  • Steam transport: Increases send-rate and buffer headroom for busy servers and initial synchronization.
  • Object ownership: Adjusts ownership based on player proximity and connection quality, and recovers objects left without an owner.
  • Client stutter: Defers forced resource cleanup during loading, teleporting, combat and ship travel.
  • Dungeon filtering: Optionally separates surface and dungeon objects to reduce unnecessary sending and loading.

Settings

Start with the defaults. Sliders range from 0 to 100; 0 turns off that feature. Higher values increase its intensity, with the trade-offs described below.

General

Option Default What it does
Enabled true Master switch for SkadiNet's optimizations.
SchedulerThroughput 35 Adjusts update frequency, players served per batch, queue limits and the send-time budget together. Higher values allow more send work and queued data; lower values reduce the work per batch but may delay updates.
PayloadReducerStrength 30 Filters small repeated position and rotation changes. Higher values save more traffic, but small movements may look less smooth.
CompressionAggression 50 Compresses packets when both ends support it. Higher values also consider smaller packets and smaller savings, which can increase CPU work.
OwnershipIntensity 45 Chooses which player simulates world objects using distance and connection quality. Higher values check more often and over a wider area, using more CPU.
ClientStutterGuardStrength 50 Delays forced memory cleanup during loading, teleporting, combat and ship travel. Higher values defer cleanup longer and retain unused memory longer. Client-local.
DungeonLayerFiltering false Separates surface and dungeon objects to reduce unnecessary sending and loading. Leave off unless your server benefits from dungeon separation.
DungeonLayerAlwaysSendPrefabs Empty Comma-separated prefab names for custom dungeon entrance floors or essential pieces. Leave empty unless the dungeon filter causes entrance-loading problems; use prefab names, not dungeon names.

General settings follow the server's values, except ClientStutterGuardStrength, which each player controls locally. The scheduler's time budget is 4 ms per batch at 35 and 8 ms at 100; one complete send can exceed it.

Built-in package, RPC, serialization, value-comparison and idle-creature optimizations, along with the received-update save fix, have no individual options. They follow Enabled and remain active when a feature slider is set to 0.

Experimental

These options are local to the server or host, default to OFF, and require SchedulerThroughput above 0. Clients do not need to enable them.

Option Default What it does
SchedulerDiagnostics false Logs player send waits, queued data, processing costs and reasons for delayed updates every 60 seconds. Useful for investigating a busy server; it does not enable automatic adjustment.
AdaptiveSendWindow false Uses available Steam connection measurements to reduce or restore each player's queue limit within the slider's cap. Falls back to the fixed limit when measurements are unavailable; does not change the time budget.

GitHub

CHANGELOG

Version Update Notes
1.1.8 SkadiNet can now keep its ZDO read optimization active when other mods run Harmony prefixes or postfixes on ZDO.Deserialize, including CraftFrom and CreatureManager.
The server can also keep marking received changes for saving alongside CraftFrom's receive counter and PortalRules' verified receive hooks. Tested on a Valheim 1.0.31 dedicated server: changes to an existing wall and portal survived a save and restart with all three mods installed.
Rewrote the README with setup instructions and the trade-offs for each settings slider.
1.1.7 Updated ownership scans and peer lookup for Valheim 1.0.30. SkadiNet now uses the game's built-in packet writes and ZDO optimizations where available. Requires BepInExPack Valheim 5.4.2360.
Fixed a server save omission when a remote player updates a persistent world object or portal. Accepted changes are now included in the next applicable save.
Optional dungeon-layer filtering keeps both layers available around Deep North snow zones.
Added a per-batch server send budget and reused candidate scans across peers. The new server-local SchedulerDiagnostics and experimental AdaptiveSendWindow options default to off.
Reduced allocations in ZDO processing, RPCs and compression, and skipped redundant updates from idle creatures.
1.1.6 - Replaced the dungeon-layer MVID allowlist with fail-closed per-patch method, field, call, branch, local-variable, and IL-anchor validation, allowing compatible Valheim rebuilds such as 1.0.14 and 1.0.15 without a version-only patch
1.1.5 - Restored dungeon-layer filtering on verified Valheim 1.0.12 client and dedicated-server builds by extending the guarded MVID allowlist, while retaining 1.0.7 support and clarifying the unsupported-build warning
1.1.4 - Centralized shared Harmony target resolution, removed a duplicate ownership peer lookup, and cached repeated ZNet role and ZPackage reader calls while preserving configuration, network wire formats, and ownership policy
1.1.3 - Added Valheim 1.0.7 compatibility for adaptive ownership and dungeon-layer patches, updated the embedded ServerSync connection/configuration path, required BepInExPack 5.4.2350, and prevented analysis DLLs from overriding the pinned build dependency
1.1.2 - Reduced unnecessary packet copying before compression and temporary ownership-candidate allocations; simplified ping bookkeeping, reflection key caching, and dungeon-layer state resets while preserving existing settings and wire protocols
1.1.1 - Fixed intermittent and persistent dungeon-entry Blocked failures on dedicated servers with DungeonLayerFiltering enabled by briefly waiting for entrance floors and prioritizing nested dungeon generators and configured entrance prefabs
1.1.0 - Fixed zone loading and ownership while Server Devcommands ghost invisibility is active by using Valheim's peer reference position for dungeon-layer decisions, without exposing the ghost player
1.0.9 - Restored the simpler 1.0.5-style SchedulerThroughput ZDO limits, set Steam send rate to 50 MB/s with a 100 MB send buffer, removed connection-phase queue state, shared-drain backoff, and ServerCharacters-specific patching, and restored LocationProxy ownership for static interior interactions such as custom boss altars
1.0.8 - Fixed initial-join send stalls and ServerCharacters PlayerProfile timeouts: the shared Steam FIFO now drains normally, backs off only after Steam reports LimitExceeded, and detects the ServerCharacters queue wait by behavior rather than a fixed mod version so profile data can proceed while routine ZDO traffic briefly pauses
1.0.7 - Added optional surface/dungeon ZDO filtering with safe transition overlap, automatic standard/modded dungeon handling, a manual entrance-floor prefab fallback for undetected building-piece dungeons, and same-layer ownership assignment; enabled shared Steam drain pacing for both normal Valheim/local hosts and dedicated servers; removed the public LockServerConfig toggle while keeping server settings admin-controlled and moved SchedulerThroughput below the dungeon settings; removed the DebugLogging option and its diagnostic hot-path instrumentation
1.0.6 - Added peer-specific backpressure and shared Steam drain pacing, restored automatic Steam bandwidth estimation, and removed compatibility with older SkadiNet builds
1.0.5 - Removed unsafe RPC AoI and impossible backfill paths, corrected peer and ownership identity, hardened negotiated compression and cleanup, and simplified reflection/config state
1.0.4 - Replaced per-ping by-ref reflection calls with cached allocation-free delegates to prevent Mono handle buildup
1.0.3 - Simplified ownership and reflection paths, hardened compression and ZDO patch safety, removed hitch diagnostics, and placed the DLL at the package root
1.0.2 - Fixed SendZDOs queue-limit patching on current Valheim builds and simplified the README
1.0.1 - Refactoring and optimization
1.0.0 - Initial Release