Categories: DiscussionValheim

Reducing lag – find a sweet spot before you build

One of the biggest things I read about is the lag and high instances in and around bases. I have some tips that might help, and an explanation of how the game-engine works.

Valheim maps are divided into 64 x 64 "tiles" or "sections". After some extensive testing, I have concluded multiple things.

  1. at any given time, 25 of these 64×64 sections will be fully loaded. The one you are standing in, and the surrounding 2 rings of sections.

  2. the max draw distance for player built things is 180 units. HOWEVER, objects are still loaded if they are within the confines of point number 1. (i dont know about non-player built things. trees seem to have a higher distance)

  3. even with the lowest draw-distance settings, those 25 sections will still load, they just dont render.

  4. every fish, bird, rock, tree, enemy, etc etc adds to the instance count. Fish seem to have a limit as to how many will spawn but I cannot be sure of this. (In the ocean my instances would drop when moving to a new grid but quickly rise to match the previous number, new fish spawning in to compensate.)

So picking your base location is very important.

Water doesnt really affect things since fish have a low max spawn. however, there are a plethora of rocks and logs underwater that you cannot get to to remove which can cause hundreds of instances that are permanent.

The most important thing is to limit your base to be completely within a small number of the map sections. I have my 2nd base limited to a single 64×64 section and there is absolutely no lag whatsoever. No pc hang when walking through the base while another section loads. just perfectly smooth.

The easiest way to find these sections is to turn the settings to their lowest and look at the ground texture. You should see the seams between sections. Pop open the info box (f2) and look at the instances. now cross that seam and watch the number magically change. This can cause major loading issues and stuttering while simply walking through a base.

my original base was built in 5 sections (dunno how i managed to do that). so the game was constantly loading and unloading over 20 extra zones as I traveled from one part of the base to another. major stutter to say the least.

Gamer

Recent Posts

Ledx have been so hard for me this wipe

Not being able to craft them sucks. Especially when everyone I talk to about it…

5 months ago

My interesting and unfortunate Gwent life

First I'd like to say I absolutely love this game it's quality. Basically I first…

5 months ago

Teacher Tuesday 12/Dec/2023 – ask your questions here!

Welcome to Teacher Tuesday, a thread where anyone can ask any type of question without…

5 months ago

This games balance is confusing

I’m kind of new/returning to gwent I played beta and obviously it’s a lot lot…

5 months ago

Summary of 10 Days of Draws from Chaffee’s Bundles

Level 1 Bag (Free with Atmosphere Level 2) 6 small consumable (First Aid, Repair, Fire…

5 months ago

Why is my crew at 135%?

Here's my crew - T34-85M - for the life of me I cant figure out…

5 months ago