


Decrease the time to generate a new valheim world by optimizing the location placement algorithim.
The most time-consuming part of Valheim’s world generation is placing locations. The default (vanilla) system for placing these locations is quite inefficient.
For each location, the game repeatedly picks random points in the already generated world and checks whether they meet certain requirements. These requirements are defined in something called a Location Config, which includes conditions like biome type, altitude, and whether the area is forested.
If a randomly chosen point doesn’t meet all of these conditions, the game discards it and tries again. This process can repeat up to 5,000 times for some high-priority locations.
The main issue is that this method relies on completely random sampling, even though some of the required information—like the correct biome—is already known ahead of time. As a result, many attempts are wasted checking locations that could never work.
This mod improves the process by changing how points are selected. Instead of choosing from anywhere in the world, it first narrows the search to areas that already match the required biome. By avoiding unnecessary checks, this significantly speeds up world generation.
I make mods because I enjoy it and want to make Valheim more enjoyable for everyone. If you feel like saying thanks you can tip me here.
| My Ko-fi: |
|---|
Source code is available on Github.
| Github Repository: |
|---|