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
- Navigate to:
%LocalAppData%\Low\Endnight\SonsOfTheForest\SonsGameSettings.json - Open with: Notepad++ or any JSON editor.
- Pro Tip: If you have an RTX 40/50 series card, ensure
Graphics.Dlss.FrameGenerationis set totruein this file to help decouple the visual frame rate from the simulation-linked CPU stalls.
Optimized “Tactical AI” Configuration Table
| Parameter | Recommended Value | Technical Purpose |
Graphics.DrawDistance | 1 (Medium) | Reduces the radius at which the CPU calculates AI and physics. |
Graphics.MicroShadowing | false | Frees up CPU cycles used for calculating tiny shadow occlusions. |
Graphics.Visibility.Foliage | 1 | Lowers the complexity of the navigation mesh ($NavMesh$) logic. |
Gameplay.Fov | 70-85 | A lower FOV reduces the “Frustum Culling” load on the CPU. |
Audio.VoiceCount | 64 | Reduces 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:
- 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) insettings.jsoncreates a “Simulation Bubble” that is much easier for your CPU to manage. - 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.VoiceCountto64or32prevents the audio engine from spiking your CPU usage during base raids. - Micro Shadowing Deactivation: While visually subtle,
MicroShadowingrequires constant communication between the CPU and GPU to determine shadow placement on moving AI models. Setting this tofalseis a “Quick Win” for AI-heavy scenes. - 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.
- 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.
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.