Sons of the Forest: Best settings.json for AI Pathfinding FPS

The core issue is that the game’s AI doesn’t just “walk”; it constantly probes the environment for obstacles ($O_{obs}$). In a complex base with many walls and structures, this creates a “Pathfinding Storm” that stalls the MainThread.

File Path & Setup

  1. Navigate to: %LocalAppData%\Low\Endnight\SonsOfTheForest\SonsGameSettings.json
  2. Open with: Notepad++ or any JSON editor.
  3. Pro Tip: If you have an RTX 40/50 series card, ensure Graphics.Dlss.FrameGeneration is set to true in this file to help decouple the visual frame rate from the simulation-linked CPU stalls.

Optimized “Tactical AI” Configuration Table

ParameterRecommended ValueTechnical Purpose
Graphics.DrawDistance1 (Medium)Reduces the radius at which the CPU calculates AI and physics.
Graphics.MicroShadowingfalseFrees up CPU cycles used for calculating tiny shadow occlusions.
Graphics.Visibility.Foliage1Lowers the complexity of the navigation mesh ($NavMesh$) logic.
Gameplay.Fov70-85A lower FOV reduces the “Frustum Culling” load on the CPU.
Audio.VoiceCount64Reduces the number of concurrent AI sound emitters.
{
  "_version": 1,
  "Settings": {
    "Graphics.DrawDistance": 1,
    "Graphics.Shadows.Quality": 1,
    "Graphics.MicroShadowing": false,
    "Graphics.ContactShadows": false,
    "Graphics.Foliage.Quality": 1,
    "Graphics.Billboard.Quality": 0,
    "Graphics.AnisotropicTextures": false,
    "Gameplay.Fov": 80.0,
    "Audio.VoiceCount": 64
  }
}

HowTo: Engineering the Pathfinding “Stutter-Fix”

Follow these GameEngineer.net technical steps to reclaim your FPS in dense forest zones:

  1. The Draw Distance Fallacy: Many users set Draw Distance to “Ultra.” In SOTF, this forces the CPU to calculate the pathfinding and animations ($A_{anim}$) of cannibals far beyond your sightline. Setting this to Medium (Value 1) in settings.json creates a “Simulation Bubble” that is much easier for your CPU to manage.
  2. Voice Count Optimization: AI pathfinding is often linked to AI “bark” triggers. If 20 cannibals are screaming, the CPU is processing 20 audio threads. Reducing Audio.VoiceCount to 64 or 32 prevents the audio engine from spiking your CPU usage during base raids.
  3. Micro Shadowing Deactivation: While visually subtle, MicroShadowing requires constant communication between the CPU and GPU to determine shadow placement on moving AI models. Setting this to false is a “Quick Win” for AI-heavy scenes.
  4. The “Stuck Kelvin” FPS Drop: If Kelvin or Virginia gets stuck in a building loop, your FPS will drop because the pathfinder is retrying the calculation every frame ($f_{retry}$). If you notice a sudden drop, use the “Sleep” mechanic to reset all AI positions on the map.
  5. Fullscreen vs. Windowed: For 2026 builds, Exclusive Fullscreen is mandatory. Windowed-Fullscreen in Unity-based games like SOTF introduces a slight delay in how the CPU handles simulation updates versus window management.

Technical Explanation: Navigation Mesh ($NavMesh$) Complexity

In Sons of the Forest, the AI uses a Dynamic NavMesh. Every time you place a defensive wall or a stick structure, the game must “re-bake” a small portion of the navigation grid ($G_{nav}$).

By lowering the Graphics.DrawDistance and Foliage.Quality, you reduce the amount of geometry the NavMesh algorithm has to consider. This reduces the Complexity per Tile ($C_{tile}$), allowing the AI to calculate a path from “Point A to Point B” in 2ms instead of 8ms. When multiplied by 30+ entities (cannibals + companions), this is the difference between a smooth 90 FPS and a stuttery 45 FPS.

Leave a Comment