ontrigger-ValheimPerformanceOptimizations icon

ValheimPerformanceOptimizations

Rendering, logic, and loading time optimizations for both client and server versions of Valheim.

Last updated 2 weeks ago
Total downloads 5223
Total rating 2 
Categories Mods Server-side Client-side
Dependency string ontrigger-ValheimPerformanceOptimizations-0.6.1
Dependants 7 other mods depend on this mod

README

ValheimPerformanceOptimizations

Rendering, logic, and loading time optimizations for both client and server versions of Valheim.

You can use the mod on either the server or the client, or both, it should work regardless.

Changes in 0.6.1

  • Fixed an incompatibility with BetterWards causing mobs inside the ward radius to flee
  • Fixed the GPU being invoked on the server causing an exception at startup

New in 0.6.0

  • Optimized rendering of build pieces with straw materials
  • Rewrote the threaded terrain collision baking to use all cores (enable it in the config)
  • Fixed incompatibility with ValheimRAFT
  • Fixed crash when only terrain collision baking was enabled

Rest of the changes can be found in CHANGELOG.md

Stats

  • 5-10 ms faster GPU render times in bases (3 fps without the mod -> 15 fps with)
  • General game stability improvements - less stutters in bases
  • 20+ seconds faster world loading times, especially for big worlds (excluding the first launch)
  • Less stutters when loading new terrain
  • General game logic performance improvements (no concrete data on framerates)

Configuration

The mod config is stored in the dev.ontrigger.vpo.cfg file.

Most optimizations done by the mod do not affect the gameplay in any way,
however some of its optimizations might cause compatibility issues with other mods.

  • Threaded terrain collision baking

If enabled terrain is generated in parallel, this reduces lag spikes when moving through the world. If you see terrain disappear, please report it on github, disabling this option will likely fix the issue.

  • Object pooling

If enabled vegetation objects are taken from a pool, instead of creating and destroying them everytime. This greatly increases performance when generating new terrain. If you notice some objects becoming invisible, please report it on github, disabling this option will likely fix the issue.

  • Object pooling multiplier - this option does not do anything useful for now

Manually compiling the mod

In order to manually compile the source code of the mod,
create a file called Environment.props inside the project base and change the Valheim install path to your location.

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <!-- Needs to be your path to the base Valheim folder -->
    <VALHEIM_INSTALL>E:\Steam\steamapps\common\Valheim</VALHEIM_INSTALL>
  </PropertyGroup>
</Project>

Contributors

  • ontrigger
  • MSchmoecker

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2021-7-13 0.6.1 1720 Version 0.6.1 Install
2021-7-8 0.6.0 679 Version 0.6.0 Install
2021-7-6 0.5.2 669 Version 0.5.2 Install
2021-7-5 0.5.1 229 Version 0.5.1 Install
2021-7-5 0.5.0 140 Version 0.5.0 Install
2021-7-3 0.4.2 351 Version 0.4.2 Install
2021-7-2 0.4.1 332 Version 0.4.1 Install
2021-7-2 0.4.0 109 Version 0.4.0 Install
2021-6-25 0.3.1 661 Version 0.3.1 Install
2021-6-23 0.3.0 333 Version 0.3.0 Install