How to improve PC performance in Valheim

Valheim Torch Forest Troll ArmorSource: 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.

VPN Deals: Lifetime license for $16, monthly plans at $1 & more

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

    Valheim Vulkan SettingSource: Windows Central

  4. Select Play Valheim Using Vulkan and click Play
  5. 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

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.

    Valheim Steam Console CommandSource: Windows Central

  4. Run Valheim in either regular or Vulkan modes.
  5. Load up your character and enter your world that is having terraforming-related performance issues.
  6. Once loaded up, press F5 to open the command console.
  7. Type optterrain and press enter.

    Valheim Optterrain CommandSource: Windows Central

  8. Valheim will display information pertaining to what was optimized in your world.
  9. 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 RockSource: 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

    Start Menu Graphics Settings SearchSource: Windows Central

  3. Select the Graphics settings / System settings option
  4. Turn on the Hardware-accelerated GPU scheduling option if it is present

    Windows Hardware Gpu SchedulingSource: Windows Central

Optimizing hidden Valheim settings

Valheim Boat CastleSource: 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

    Valheim Local FilesSource: Windows Central

  5. In the File Explorer window that appears, open the valheim_Data folder
  6. Right-click on the boot.cofig file and select Open With
  7. Click in the blank space in the middle of the window to unlock the ability to select additional applications

    Open With BlankSource: Windows Central

  8. Select Notepad from the list. You can optionally select “Always use this app to open .config files” if you wish.

    Open With NotepadSource: 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

    Valheim Vulkan SettingSource: Windows Central

Try playing in exclusive windowed mode

Valheim Night Sky StarsSource: 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

    Steam Valheim Window Mode CommandSource: Windows Central

  5. Close the window to apply the changes
  6. 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.

Play Early, play often

Valheim Art

Valheim (Early Access)

Early Access doesn’t mean you shouldn’t try it

Valheim is an early access survival game that has you living the life of a Viking stuck between Earth and Valhalla. Will you make it to see paradise?

Source link