How to improve PC performance in Valheim

Valheim Torch Forest Troll Armor
Valheim Torch Forest Troll Armor (Image credit: Nick Sutrich / Windows Central)

While Valheim has sold millions of copies in record time, the game is still very much an Early Access title. That means there are plenty of Valheim bugs that you'll come across in your travels, even if most of them aren't game-breaking. One that's most annoying, however, is the strangely-low performance of the game. Given the pseudo-PS1 style visuals of the game, it's a bit surprising to see even the best gaming PCs run it so poorly. Thankfully, you can do a few easy things to improve the game's performance while developer Iron Gate Studio works on optimizing the game during the Early Access period.

How to improve Valheim performance with Vulkan

As of the February 25, 2021 update (version 0.146.8), Valheim officially supports the Vulkan API. If you're not familiar with coding APIs, know this about Vulkan: it's a modern coding architecture designed to run more efficiently than older APIs. That means, on most PCs, using Vulkan should significantly improve performance without affecting visual quality. Just the opposite, in fact! Running Vulkan normally means you can crank up the graphics even higher while maintaining a playable framerate.

For note, this change will work better on some hardware than others. On my laptop, which runs an Intel Core-i7 6700HQ processor, 16GB RAM, and an NVIDIA GeForce GTX 960M, Valheim normally runs between 22 and 24 FPS average on medium-high settings at 1080p resolution. Switching over to Vulkan without changing any settings brought that performance up to 30-32 FPS average.

Conversely, on my desktop computer, which runs an Intel Core-i7 8700k, 16GB RAM, and an NVIDIA GeForce 1080Ti, Valheim normally runs 28-30FPS on the highest settings at 4k resolution. Switching over to Vulkan doubled my framerate to 60FPS average without adjusting any settings.

  1. Open Steam and select Valheim from your list of games
  2. Click Play
  3. Valheim will ask you if you want to Play Valheim or Play Valheim using Vulkan

Source: Windows Central (Image credit: Source: Windows Central)
  1. Select Play Valheim Using Vulkan and click Play
  2. Steam will not remember your selection, so you'll need to select the option to Play Valheim Using Vulkan every time you start the game

Fixing terraforming slow-downs in Valheim

Valheim

Source: Windows Central (Image credit: Source: Windows Central)

Terraforming, or changing the height of the land in Valheim, used to create unnecessary slowdown when a lot of land was changed in a small area. If you've been playing a while and have built a massive base, you no doubt have experienced lower framerates. Valheim version 0.150.3 introduced a new way to change up the landscape that doesn't affect performance like it used to, but maps aren't automatically converted over to the new system. In order to that you'll need to issue one simple command that'll get it done. Here's how to do that:

  1. Right-click on Valheim in Steam and select Properties
  2. In the properties window that appears, type -console into the Launch Options section.
  3. Close the window when you're done.

Source: Windows Central (Image credit: Source: Windows Central)
  1. Run Valheim in either regular or Vulkan modes.
  2. Load up your character and enter your world that is having terraforming-related performance issues.
  3. Once loaded up, press F5 to open the command console.
  4. Type optterrain and press enter.

Source: Windows Central (Image credit: Source: Windows Central)
  1. Valheim will display information pertaining to what was optimized in your world.
  2. Repeat this for as many worlds as you are running that are suffering from terraforming-related issues.

Any terrain changes made after the version 0.150.3 patch will use this new optimized version of terraforming, so you'll only need to run this command once on any worlds created prior to version 0.150.3.

Other ways of improving performance in Valheim

Valheim Sailing Turtle Rock

Source: Nick Sutrich / Windows Central (Image credit: Source: Nick Sutrich / Windows Central)

Some players have reported that running Vulkan either doesn't improve performance much or at all. Others, still, have reported that running Valheim using Vulkan makes the game more unstable. If you're having issues with Vulkan and need to stick with the original rendering API, here are a few ways to improve performance in that mode.

Optimizing Windows settings

With the latest releases, Microsoft has added some new generic performance improvements within Windows that could actually help Valheim players see higher framerates in the game. Not all computers will have the ability to use the hardware-accelerated GPU scheduling option, but you should enable it if your computer supports it.

  1. Press the Start button or Windows Key on your keyboard to open the Start Menu
  2. Type in graphics settings

Source: Windows Central (Image credit: Source: Windows Central)
  1. Select the Graphics settings / System settings option
  2. Turn on the Hardware-accelerated GPU scheduling option if it is present

Source: Windows Central (Image credit: Source: Windows Central)

Optimizing hidden Valheim settings

Valheim Boat Castle

Source: Nick Sutrich / Windows Central (Image credit: Source: Nick Sutrich / Windows Central)

Some additional hidden graphics settings can be changed within Valheim's configuration files, found in the Valheim installation directory. If you're not comfortable with adjusting configuration files, feel free to skip this section. Players on Reddit who have adjusted these settings have found that framerates drastically increase in the game without affecting visual details at all.

  1. Make sure Valheim is closed
  2. Open Steam
  3. Right-Click on Valheim in your library and select properties
  4. Select local files on the left-hand side of the window, then click browse to find where Valheim's files are stored

Source: Windows Central (Image credit: Source: Windows Central)
  1. In the File Explorer window that appears, open the valheim_Data folder
  2. Right-click on the boot.cofig file and select Open With
  3. Click in the blank space in the middle of the window to unlock the ability to select additional applications

Source: Windows Central (Image credit: Source: Windows Central)
  1. Select Notepad from the list. You can optionally select "Always use this app to open .config files" if you wish.

Source: Windows Central (Image credit: Source: Windows Central)

Once you have the boot.config file open in Notepad, make the following adjustments:

  1. Add two new lines to the file by pressing the Enter key twice at the top of the document
  2. Copy the following command and paste it into the first line: gfx-enable-jobs=1
  3. Copy the following command and paste it into the second line: gfx-enable-native-gfx-jobs=1
  4. Save the file by pressing control+s or going to File and click Save

Now that the settings have been added head back to Steam.

  1. Select Valheim from your Steam library and click Play
  2. Select Play Valheim from the list of options that appears and click Play

Source: Windows Central (Image credit: Source: Windows Central)

Try playing in exclusive windowed mode

Valheim Night Sky Stars

Source: Nick Sutrich / Windows Central (Image credit: Source: Nick Sutrich / Windows Central)

Some players find that full-screen games don't perform as well as windowed ones. You can enable this special exclusive windowed mode option by adding one simple command to the Steam launcher by following these steps:

  1. Make sure Valheim is closed
  2. Open Steam
  3. Right-Click on Valheim in your library and select properties
  4. Copy the following command and paste it into the launch options box at the bottom of the General section: -window-mode exclusive

Source: Windows Central (Image credit: Source: Windows Central)
  1. Close the window to apply the changes
  2. Launch Valheim in your preferred mode

Enjoy playing a far smoother-running Valheim! Just keep in mind that you might not see a massive increase in performance even if you enact all of the changes made here. Don't worry though, as developer Iron Gate Studio is working hard to optimize Valheim for all sorts of configurations and make it the best survival game on PC.

Nicholas Sutrich

Nick started with DOS and NES and uses those fond memories of floppy disks and cartridges to fuel his opinions on modern tech. Whether it's VR, smart home gadgets, or something else that beeps and boops, he's been writing about it since 2011. Reach him on Twitter or Instagram @Gwanatu