Valheim Server Performance Optimization
Guide to optimizing your Valheim dedicated server for minimal lag. Covers terraforming impact, world size, instance management, and plan selection.
Wiki team
Valheim Server Performance
Valheim is a beautiful game, but it can be demanding on server hardware — especially with large builds, terraforming, and mods. This guide helps you keep your server running smoothly.
Understanding Valheim Server Load
Valheim server performance is affected by these factors (in order of impact):
| Factor | Impact | Why |
|---|---|---|
| Terraforming | 🔴 Very High | Modified terrain data is stored permanently |
| Number of active instances | 🔴 High | Each loaded area consumes RAM |
| Build complexity | 🟡 Medium | Many build pieces increase tick time |
| Number of players | 🟡 Medium | More players = more simultaneous zones |
| Mods | 🟡 Medium | Depends on the mod |
| World age | 🟢 Low | Explored areas add minor overhead |
The Terraforming Problem
Terraforming (raising/lowering ground, leveling terrain) is the #1 cause of Valheim server lag. Each terrain modification is stored as permanent world data that never gets cleaned up.
What Causes Terraforming Load
- Using the Hoe to level ground
- Using the Pickaxe to lower ground
- Raising ground for foundations
- Large-scale terrain flattening for bases
How to Minimize Terraforming Impact
- Build on natural terrain whenever possible
- Use wood floors instead of flattening ground for building surfaces
- Avoid excessive leveling — level only where you must walk
- Use raise ground sparingly — it creates the most data
- Build in stages — don't flatten an entire mountain at once
Tip: If you notice lag in a specific area, it's often because of heavy terraforming in that zone. There's no way to "undo" terraforming data without resetting the world.
Choosing the Right Plan
| Scenario | Recommended Plan | RAM |
|---|---|---|
| 1-3 players, vanilla, light building | Starter | 4 GB |
| 3-5 players, medium builds, some mods | Standard | 8 GB |
| 5-10 players, large builds, heavy mods | Standard | 8 GB |
| Heavy terraforming, Valheim Plus, big community | Consider Valheim Plus plan | 6-10 GB |
When to Upgrade
Signs you need more resources:
- Consistent lag spikes when entering built-up areas
- Rubberbanding when multiple players are in different biomes
- Long save times (visible as periodic freezes)
- Server crashes under load
To upgrade, contact support via Discord or use the dashboard upgrade option.
Optimizing Server Settings
Save Interval
The default save interval is 1800 seconds (30 minutes). During saves, the server briefly freezes. Consider adjusting:
| Players | Recommended Save Interval |
|---|---|
| 1-3 | 1800s (default) |
| 4-6 | 1200s (20 minutes) |
| 7-10 | 900s (15 minutes) |
More frequent saves mean shorter freeze time per save, but slightly more overall I/O.
Backup Count
Keep at least 3-4 backups. The server cycles through backups automatically, overwriting the oldest when the limit is reached.
Instance Management
Valheim loads the world in "zones" around each player. The more spread out your players are, the more the server has to process.
Best Practices
- Explore together when possible — fewer simultaneous zones
- Don't AFK in remote locations — your position forces the server to keep that area loaded
- Use portals to reduce travel — less world is loaded during fast travel
- Avoid building bases in every biome — each base is a potential load point
Build Optimization
High-Impact Build Practices
| Practice | Impact |
|---|---|
| Keep build pieces under 1,000 per area | 🟢 Good performance |
| 1,000-5,000 pieces per area | 🟡 Moderate impact |
| 5,000+ pieces per area | 🔴 Noticeable lag |
Reduce Build Lag
- Minimize smoke sources — Fireplaces and kilns create particle effects that use CPU
- Use less detailed builds in large bases — Every detail piece adds tick time
- Avoid item stands with items — Each displayed item is an entity
- Limit active workbench/crafting zones — They scan for nearby materials
Mod Performance Tips
Performance-Friendly Mods
- Server Devcommands — Efficient admin tools
- AzuAntiCheat — Lightweight anti-cheat
- Clock — Simple QoL, minimal overhead
Performance-Heavy Mods
- Epic Loot — Adds item processing overhead
- Creature Level and Loot Control — Spawns additional/stronger enemies
- PlantEverything — Can cause lag with massive farms
- Valheim Plus — Generally fine, but advanced building mode has an overhead during building sessions
Mod Optimization Tips
- Run fewer mods — Each mod adds processing overhead
- Update mods regularly — Newer versions often have performance fixes
- Remove unused mods — Don't keep mods installed "just in case"
- Check BepInEx logs — Look for error spam that can degrade performance
Monitoring Performance
In-Game
Press F2 to open the debug overlay showing:
- FPS: Client framerate (not server-side, but indicates overall load)
- Instances: Number of loaded terrain areas
- Draw calls: Rendering complexity
Server Console
Watch for these in your HostedGG console:
- Long save messages — Indicates the world is getting large
- Error spam — Mod errors can cause lag
- Memory warnings — Time to consider upgrading
Emergency: Server Is Lagging Badly
Quick fixes to try:
- Restart the server — Clears memory and resets instance cache
- Reduce player spread — Ask everyone to gather in one area
- Remove dropped items — Admin command:
removedrops - Check for error spam — View BepInEx logs for stuck processes
- Disable problematic mods — Remove recently added mods one at a time
Next Steps
- Troubleshoot specific server issues
- Configure world settings for better performance
- Choose performance-friendly mods
Related Blog Posts
Related Articles
Help verify this page
Tested this recently? Send a quick accuracy signal for editors.
Help improve HostedGG
Know this game? Join our community of contributors.
Discussion
Sign in to join the discussion.
Loading discussion...