Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Valheim

From PCGamingWiki, the wiki about fixing PC games
Revision as of 18:55, 31 October 2023 by Mezzodrinker (talk | contribs) (Add section "Issues unresolved" with workarounds suggested by developers for mouse capturing on Linux)
Dev general icon.svg
This product is unreleased but remains under active development - information may change frequently and could be outdated or irrelevant.
Valheim
Valheim cover
Developers
Iron Gate Studio
Publishers
Coffee Stain Studios
Engines
Unity 2019[Note 1]
Release dates
Windows Early access
Linux Early access
Taxonomy
Monetization One-time game purchase
Microtransactions None
Modes Singleplayer, Multiplayer
Pacing Real-time
Perspectives Third-person
Controls Direct control
Genres Survival, Adventure
Art styles Stylized
Themes Fantasy
Valheim on HowLongToBeat
Valheim on IGDB
Valheim on MobyGames
Valheim on Wikipedia

Valheim is a singleplayer and multiplayer third-person survival and adventure game.

The game was released to early access on February 2, 2021 on Steam, selling over three million copies by February 19.[2]

General information

Official subreddit
Official Discord
Steam Community Discussions

Availability

Source DRM Notes Keys OS
Humble Store
Icon overlay.png
Windows
Linux
Microsoft Store
Microsoft Store
Included with Xbox Game Pass for PC.
Windows
Steam
Icon overlay.png
Windows
Linux

Essential improvements

Improve the performance in OpenGL mode on Linux for AMD/Intel

Use the mesa_glthread=true %command% command line argument[citation needed]
  • Running the game with mesa_glthread=true %command% on Steam greatly improves the performance when running on Linux with Mesa driver library for AMD/Intel GPUs in order to utilize multiple CPU cores. Not required in Mesa 21.1.

Improve performance

Edit boot.config file.[3]
  • Open boot.config (located in /steamapps/common/Valheim/Valheim_Data) with a text editor.
  • At the top of the file add:
    gfx-enable-gfx-jobs=1
    gfx-enable-native-gfx-jobs=1
    scripting-runtime-version=latest
  • Save File.

Notes

Warning: This can cause freezes/crashes when using Vulkan on certain hardware.[4]

Game data

Configuration file(s) location

System Location
Windows HKEY_CURRENT_USER\SOFTWARE\IronGate\Valheim\
Microsoft Store
Linux $XDG_CONFIG_HOME/unity3d/IronGate/Valheim/prefs
This game follows the XDG Base Directory Specification on Linux.

Save game data location

System Location
Windows %USERPROFILE%\AppData\LocalLow\IronGate\Valheim\
Microsoft Store
Linux $XDG_CONFIG_HOME/unity3d/IronGate/Valheim/

Save game cloud syncing

System Native Notes
Steam Cloud
Xbox Cloud

Video

Graphics Options
Graphics Options

Graphics feature State Notes
Widescreen resolution
Multi-monitor
Ultra-widescreen
4K Ultra HD
Text and icons on the map appear to use fixed pixel widths, making them difficult to read at 4K resolution.
Field of view (FOV)
Windowed
Borderless fullscreen windowed
Fullscreen mode defaults to borderless fullscreen
Anisotropic filtering (AF)
See the glossary page for potential workarounds.
Anti-aliasing (AA)
On/off toggle.
Vertical sync (Vsync)
60 FPS and 120+ FPS
High dynamic range display (HDR)
No plans to implement native HDR support
Ray tracing (RT)
The game engine may allow for manual configuration of the game via its variables. See the Unity page for more details.

HUD Settings

Hide HUD

The default hotkey to toggle the HUD is Ctrl+F3

Exclusive Fullscreen mode

Command line parameter[5]
  1. See Command line arguments.
  2. Type in -window-mode exclusive -screen-fullscreen
This can improve the performance, but might cause issues when tabbing out of the game.

[6]

Force Vulkan on Windows

Command line parameter[7]
  1. See Command line arguments.
  2. Type in -force-vulkan

Console

Command line parameter[8]
  1. See Command line arguments.
  2. Type in -console

Input

Input settings
Input settings

Keyboard and mouse State Notes
Remapping
Open chat is hardcoded to Enter. Item belt hotkeys can't be remapped.
Mouse acceleration
Mouse sensitivity
Mouse input in menus
Mouse Y-axis inversion
Controller
Controller support
Full controller support
Added in Steam Deck update on March 1.
Controller remapping
See the glossary page for potential workarounds.
Controller sensitivity
Controller Y-axis inversion
Enable "Invert Mouse" option.
Controller types
XInput-compatible controllers
Xbox button prompts
Impulse Trigger vibration
PlayStation controllers
Doesn't read inputs correctly. May require Steam Input support to be enabled.
Generic/other controllers
Additional information
Controller hotplugging
Haptic feedback
Digital movement supported
Simultaneous controller+KB/M

Audio

Audio settings
Audio settings

Audio feature State Notes
Separate volume controls
Surround sound
Subtitles
There is no spoken dialogue.
Closed captions
Mute on focus lost
Royalty free audio
Miscellaneous settings
Miscellaneous settings

Localizations

Language UI Audio Sub Notes
English
Bulgarian
Simplified Chinese
Czech
Danish
Finnish
French
German
Hungarian
Polish
Brazilian Portuguese
Romanian
Russian
Spanish
Swedish
Turkish

Network

Multiplayer types

Type Native Players Notes
LAN play
10 Co-op, Versus
The game can be played through LAN using the dedicated server.
Online play
10 Co-op, Versus
PVP can be turned on. Off by default

Connection types

Issues fixed

Game runs poorly on Vulkan in AMD on Linux

Force OpenGL mode

Run the game with -force-opengl or -force-glcore, additionally you can also run with mesa_glthread=true %command% -force-opengl (or -force-glcore) for a much better performance. Will be fixed in the upcoming Mesa 21.1[citation needed]

Disable TearFree

The game runs poorly with TearFree enabled with AMDGPU and Vulkan.
xrandr --output DisplayPort-0 --set TearFree off
Change DisplayPort-0 to the name of your display (run xrandr to get a list)

Issues unresolved

Mouse cursor isn't captured properly on Linux[9]

The developers are aware of this issue and are awaiting a Unity update that should resolve it.
Download and install gamescope[9][10]
See the README file on GitHub for up-to-date information on how to set up gamescope.
  1. Modify the Steam launch arguments of Valheim to the following: gamescope -W <width> -H <height> -b -- %command% where <width> and <height> are the width and height of your monitor's native resolution, respectively. For example, if your monitor has a native resolution of 1920×1080, use gamescope -W 1920 -H 1080 -b -- %command%
Run via Proton and use Vulkan[9][10]
  1. Open the Library in Steam, then Right Click on Valheim and select Properties...
  2. In the Compatibility tab, set the check mark at Force the use of a specific Steam Play compatibility tool.
  3. Leave the Proton version at the default value or switch to Proton 8.0.[11]
  4. In the General tab, under Launch Options, add the command line option -force-vulkan.
Adjust monitor layout[9]
Suggested monitor layout
Suggested monitor layout
  1. Open the system settings for the monitor layout.
  2. Move the monitors so that the monitor on which Valheim is shown only touches the other monitors on the corners (see image).
Disconnect all other monitors[9]
Move the game window after start[9][dubious – discuss]
  1. Launch the game on a monitor that does not have the highest resolution.
  2. Move the game window to the monitor with the highest resolution.
Use borderless fullscreen mode[9][dubious – discuss]
  1. Start the game with the command line parameter -console.
  2. Once in the main menu, press F5 to open the console.
  3. Enter the command exclusivefullscreen and confirm with Enter ⏎.
  4. In case the above command does not fix the behaviour, repeat the last step and check again.

Other information

API

Technical specs Supported Notes
Direct3D 11 Default API on Windows
OpenGL 4.5 Alternate API on Linux
Vulkan 1.2 Default API on Linux, alternate on Windows
Executable 32-bit 64-bit Notes
Windows
Linux

System requirements

Windows
Minimum Recommended
Operating system (OS) 7
Processor (CPU) 2.6 GHz Quad Core
System memory (RAM) 8 GB
Hard disk drive (HDD) 1 GB
Video card (GPU) Nvidia GeForce GTX 950
AMD Radeon HD 7970
DirectX 11 compatible
Other
A 64-bit operating system is required.
Linux
Minimum Recommended
Operating system (OS) Any up to date version
Processor (CPU) 2.6 GHz Dual Core
System memory (RAM) 8 GB
Hard disk drive (HDD) 1 GB
Video card (GPU) Nvidia GeForce GTX 950
AMD Radeon HD 7970
Other
A 64-bit operating system is required.


Notes

  1. Unity engine build: 2019.4.31f1[1]

References

  1. Verified by User:Baronsmoki on 2022-01-10
  2. Three Million Vikings! - last accessed on 2021-02-19
  3. Steam Community - last accessed on 28 May 2023
  4. Reddit - last accessed on 28 May 2023
  5. Steam Community - last accessed on 28 May 2023
  6. Reddit - last accessed on 28 May 2023
  7. Steam Community - last accessed on 28 May 2023
  8. Steam Community - last accessed on 28 May 2023
  9. 9.0 9.1 9.2 9.3 9.4 9.5 9.6 Cursor not properly captured on Linux multimonitor after 0.214.300 patch - Valheim Bugs - last accessed on 2023-10-31
    "The 0.214.300 version of the game includes engine update to 2020.3.41f1, which was required to fix bugs with scrolling being inverted and slow on Linux. This update fixed the mentioned issue, but created new problems. All mouse input related issues should be resolved when and if Valheim gets updated to a new Unity version."
  10. 10.0 10.1 Verified by User:Mezzodrinker on 2023-10-31
    Verified with Valheim 0.217.25 on Arch Linux, Gnome 45 and Wayland.
  11. ProtonDB | Game Details for Valheim - last accessed on 2023-10-31