This guide is a trusted resource, offering tips to optimize Valheim performance, even on older systems. Compiled from expert sources, personal experience, and community insights to provide you with practical recommendations.
Even though this guide is separated into sections, you do not necessarily have to do all of them in order or even at all. However, ensure you read through this guide in its entirety before attempting any of the below sections.
The game suffers from performance issues even on high-end PCs. To address these problems, let's start by taking advantage of the Vulkan API.
Valheim supports the Vulkan API, a more efficient graphics architecture that potentially can:
- Lower CPU load
- Predictable CPU load
- Better memory interfaces
- Predictable memory load
Running Valheim in Vulkan can improve FPS, especially on systems that struggle with the default renderer.
-
Enable the Vulkan API:
- In the Steam Library for Valheim, simply click
Play
. - Choose
Play Valheim using Vulkan
- In the Steam Library for Valheim, simply click
Note
Modifying this file will boost FPS as it forces the system to allocate more processing tasks to the Graphics Processing Unit (GPU), thereby lightening the load on the Central Processing Unit (CPU) and alleviating bottlenecks.
Important
Updating Valheim will remove this modification, forcing you to add it again.
-
Locate the
boot.config
:-
In your Steam Library,
Right-Click
onValheim
. -
Navigate to
Manage
⇒Browse local files
. -
Inside the Explorer window that should have opened, you will see
valheim_Data
.C:\Program Files (x86)\Steam\steamapps\common\Valheim\valheim_Data
-
Inside of the
valheim_Data
folder, locate theboot.config
file. It's at the top.
-
-
Editing the file:
-
Right-click
onboot.config
and selectOpen With
⇒Notepad
. -
Add the following lines at the top of the file:
gfx-enable-gfx-jobs=1
gfx-enable-native-gfx-jobs=1
-
Save and exit
-
Here is what your boot.config
file should now look like:
Important
You can Verify Files
, located in the Properties
Panel. To have Steam check and restore any modified files.
In this section, we’ll create a command shortcut that launches Valheim from Steam in high-priority mode.
In Windows, the operating system allocates the computer’s resources based on the priority of each application.
A higher priority means more resources will be allocated to Valheim.
-
Create a shortcut:
- In your Steam Library,
Right-Click
onValheim
. - Navigate to
Manage
⇒Browse local files
. Right-Click
onvalheim.exe
and selectCreate shortcut
.- Name the new shortcut
valheim
.
- In your Steam Library,
-
Make it a Command shortcut:
-
Right-Click
the new shortcut, selectProperties
. -
Add the following to the front of the
Target
field:cmd /c start /high Valheim.exe
-
Click
OK
-
Note
The /c instructs the command prompt to close after executing our command.
-
Copy the location of the shortcut to paste into Steam.
- While holding down the
SHIFT
key,Right-click
on the Command shortcut. - Select
Copy as path
.
- While holding down the
-
Open Steam and go to the Launch Options for Valheim.
-
Paste in the path, then after it type:
%command%
"C:\Program Files (x86)\Steam\steamapps\common\Valheim\valheim.lnk" %command%
-
Note
Only one or the other can be done.
-
Set a power plan through Settings:
- Press
Windows Key
+R
, and typepowercfg.cpl
. - Select
High performance
or, if available, chooseUltimate Performance
.
- Press
-
Force a Power Plan with the Group Policy (will not work on Home editions of Windows):
- Press
Windows Key
+R
, and typegpedit.msc
. - Under
Local Computer Policy
, expandComputer Configuration
⇒Administrative Templates
⇒System
, and selectPower Management
. - Double-click on
Select an active power plan
. - Select the
Enabled
radio button and choose from the drop-downHigh Performance
or, if available,Ultimate Performance
. - Click
OK
.
- Press
If you're using an Nvidia GPU, tweak settings for Valheim to get an extra FPS boost:
-
Vertical Sync
can be set toFast
in the Nvidia Control Panel to reduce input lag without locking FPS, especially if your system produces higher frame rates than your monitor's refresh rate. -
Power Management Mode: Set to
Maximum Performance
.
Caution
BE AWARE THIS IS A WIP: ANY HELP WOULD BE GREAT. LOD seems to be screwy.
- Adjust Graphics Quality: Choose from Low, Medium, High, or Ultra presets to optimize Valheim's graphics settings for your system.
- Automatic System Detection: The script detects your CPU, RAM, and GPU to recommend the best graphics quality setting.
- Backup Functionality: Before making changes, the script creates a backup of your current Valheim registry settings.
- Restore Capability: Easily restore previous graphics settings from backups.
- User-Friendly Interface: Interactive menu-driven script that's simple to use, even for those unfamiliar with PowerShell.
-
Run PowerShell as Administrator.
- Press
Win
+S
, and typepowershell
. Right-Click
on the search entry forpowershell
, and from the menu, selectRun as administrator
.
- Press
-
Copy and Paste One or the Other:
The following code will allow remote script execution and execute my script without the need to download it.
#One Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force; Invoke-RestMethod "https://raw.githubusercontent.com/RobThePCGuy/Performance-Mod-Guide-For-Valheim/main/doit.ps1" | Invoke-Expression
OR: This will run the script as Administrator, allow remote script execution, and execute my script without the need to download it.
#the Other Start-Process PowerShell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force; Invoke-RestMethod 'https://raw.githubusercontent.com/RobThePCGuy/Performance-Mod-Guide-For-Valheim/main/doit.ps1' | Invoke-Expression" -Verb RunAs
-
When you run the script, you'll be presented with a menu.
Allows you to select from:
- Low: Optimizes for performance on lower-end systems.
- Medium: Balanced settings for moderate performance and visuals.
- High: Enhances visuals while maintaining good performance.
- Ultra: Maximum settings for high-end systems.
Restore/Backup the Registry.
- Lists available backups stored in the
ValheimRegistryBackup
folder on your Desktop. - Allows you to:
- Restore the most recent backup.
- Choose a specific backup to restore.
- Enter a custom backup file path.
Caution
Restoring settings will overwrite your current graphics configurations.
Note
Backups are stored in a folder named ValheimRegistryBackup
on your Desktop.
Each backup is a .reg
file with a timestamp (e.g., ValheimRegistryBackup_20230101120000.reg
).
You can manually restore a backup by double-clicking the .reg
file and following the prompts.
Important
Modifying the registry requires administrative privileges. Ensure you run PowerShell as Administrator. Ensure that Valheim is not running while you apply new settings or restore backups.
To force a few fixes directly, we can use Steam and its Launch Options.
- In your Steam Library,
Right-Click
onValheim
, selectProperties
⇒Launch Options
.
Launch Options | Description |
---|---|
-screen-width 1920 -screen-height 1080 | Override the default screen width and height |
-console | Enables the F5 console inside Valheim |
-window-mode exclusive | Activates exclusive full-screen mode. If it doesn't seem to be working, press ALT +ENTER x2. |
-window-mode borderless | Opens in a full-screen window without borders. |
-popupwindow | A window without a frame. |
-force-d3d9 | Run a game using DirectX 9 |
-force-d3d11 | Run a game using DirectX 11 |
-force-d3d12 | Run a game using DirectX 12 |
-force-vulkan | Forces Vulkan. It is easier to simply choose Vulkan from the options after clicking Play. |
Your final Steam Launch Options may look something like this:
"C:\Program Files (x86)\Steam\steamapps\common\Valheim\valheim.lnk" %command% -console
These hacks and scripts are provided "as is" without warranty of any kind. The author is not liable for damage or data loss. Use at your own risk.
Performance optimization in Valheim is an ongoing process, as the game itself is evolving. Use this guide as a starting point, and experiment with different settings to see what works best for your system. Remember, feedback is valuable—if you discover new optimizations, feel free to share them to help others.
Enjoy smoother gameplay and the Viking adventure you deserve! If this guide has helped, consider leaving a comment or contacting me with suggestions at rob@zero-one-zero.com.
If my guide has enhanced your gaming experience, consider leaving a star.