How to Fix Valheim Server Lag - Optimize Performance for Smooth Gameplay
Why Valheim Servers Lag
Valheim is a CPU-intensive game because every object (trees, rocks, items, buildings) is persistent and simulated. Unlike Minecraft, Valheim doesn't unload areas - everything in the explored world stays active. The main lag sources are: too many base objects (workbenches, torches, crafting stations), over-farmed areas with too many item drops, large builds with thousands of instances, and insufficient CPU single-core performance.
1. Optimize Server Launch Parameters
Valheim benefits from specific launch arguments. On your CyberNex control panel, go to the Startup tab and ensure your command includes: -batchmode -nographics -name 'ServerName' -port 2456 -world 'WorldName' -password 'Secret' -crossplay (if needed) -public 1 -savedir /path/to/saves. For performance, the key flags are -batchmode (reduces overhead) and -nographics (prevents rendering on the server). Valheim uses only 1-2 CPU cores, so prioritize high clock speed over core count when choosing your plan.
2. Set Up World Optimization Mods
The Valheim Performance Optimization modpack can reduce lag by 50% or more. Key mods to install: Valheim Plus (optimizes rendering and physics), BetterNetworking (reduces network lag), PlantEverything (reduces instance counts for crops), and HDOverhaul (optimizes asset loading). Install these via the Thunderstore Mod Manager or your control panel's one-click mod installer. The most impactful single mod is 'Valheim Performance Optimization' which adds LOD culling, instance limiting, and render distance controls.
3. Reduce Base Object Count
The #1 cause of Valheim server lag is excessive base objects. Each workbench, torch, fire, smelter, and crafting station creates persistent instances that must be tracked. Tips: replace multiple torches with a few hanging braziers, use fewer but larger buildings instead of many small ones, keep smelting operations compact, avoid decorative items in large quantities, and place workbenches only where needed for building. Use the 'instance count' mod to see exactly how many objects each area has. Keep individual base instances under 10,000 for smooth performance.
4. Manage World Exploration and Item Drops
Explored areas stay loaded in memory forever. Limit exploration to only what's needed. Clean up temporary structures and abandoned bases using the 'PlanBuild' mod's undo tool. Item drops from farming, logging, and mining should be collected promptly - dropped items create instances. Use the 'Auto Pickup' feature to reduce ground clutter. Set up item disposal systems for excess resources. On the server side, configure auto-cleanup timers for item drops older than 30 minutes.
5. Allocate Sufficient Hardware Resources
Valheim server requirements by player count: 2-5 players: 2GB RAM, 2 cores. 5-10 players: 4GB RAM, 4 cores. 10-15 players: 6GB RAM, 4 cores. 15+ players: 8GB+ RAM, 4+ cores. RAM is cheap for Valheim servers, CPU single-core performance is what matters most. CyberNex VPS plans with AMD Ryzen processors provide the single-core performance Valheim needs. Our Valheim hosting plans are specifically optimized with the correct launch parameters and pre-installed performance mods.
FAQ
Related Tutorials
Was this guide helpful?
Join our Discord for more guides and direct help from our engineering team.
