
You are viewing a potentially older version of this package. View Latest Version
PeakOptimizer
Surgical performance and GC optimization mod for PEAK without visual degradation.Reis Optimizer for PEAK
A performance and stability mod for PEAK. It combines targeted CPU script optimizations and bug fixes with configurable GPU rendering distance reductions.
How It Works: Honest Breakdown
This mod does not claim "free performance without compromises." It achieves frame rate gains through two distinct mechanisms:
1. CPU & Engine Script Fixes (Zero Visual Cost)
- Fog Loop Fix: Strips per-frame
Debug.Logconsole spam inside fog zones, eliminating garbage collection memory spikes while preserving exact cold/injury gameplay math. - Scout Bot Bugfix: Fixes a vanilla bug where helper bots only checked the first spawned player in multiplayer lobbies, and replaces LINQ allocations with direct character lookups.
- Audio & Light Volume Caching: Throttles repetitive 3D lightmap CPU texture lookups (
SamplePositionAlpha) across ambient audio, wind chill zones, and voice chat to 20 Hz using a fast spatial cache. - Voice Obscurance Throttling: Limits synchronous obstruction raycasts for proximity voice chat to 10 Hz with smooth volume interpolation.
- Grass Compute Frustum Culling: Stops procedural grass compute shaders from generating invisible grass blades outside your camera's field of view.
- Grass Memory Optimization: Reuses a static material property block to prevent continuous heap allocations during grass rendering.
- Foliage Physics Rate: Caps palm leaf and tree spring physics simulations to 30 Hz with distance time-slicing.
- The Citadel Swinging Maces: Suspends physical rotation updates for distant swinging maces beyond 45 meters from the player.
- Airport Mirror Culling: Disables the secondary reflection camera pass when the airport mirror is outside your field of view.
- Startup Stability: Prevents startup null-reference errors during scene transitions before player and item references are assigned.
2. GPU & Rendering Tweaks (Visual Trade-offs)
- Shadow Distance Reductions: Reduces shadow draw distance from vanilla 200m down to 70m (High), 55m (Medium), or 35m (Low). Trade-off: Faraway mountains will not cast shadows.
- Anti-Acne Shadow Fix: Adjusts normal bias on directional sunlight to eliminate diagonal zebra stripes and acne artifacts across flat rock faces.
- Ambient Occlusion (HBAO): Caps ambient occlusion raymarching distance to 40 meters and evaluates at half resolution. Trade-off: Distant terrain does not receive ambient shadow darkening.
- Decorative Pebble Culling: Disables non-interactive small rocks (< 1.5m radius) beyond 50 meters with smooth hysteresis. Trade-off: Distant decorative ground debris is hidden.
- Terrain LOD Scaling: Transitions distant cliff meshes to lower polygon levels slightly earlier. Trade-off: Mesh transitions occur closer to the player.
- Anisotropic Filtering Cap: Limits anisotropic filtering to 4x on multi-channel terrain shaders to reduce memory bandwidth load.
- GPU Instancing: Enables hardware instancing on supported prop and rock materials.
(Note: Internal render scale is left 100% under native in-game settings control.)
Configuration Reference
All features can be toggled or tuned individually in:
BepInEx/config/com.reis.peakoptimizer.cfg
| Setting | Default | Description |
|---|---|---|
MasterEnabled |
true |
Master switch to enable or disable all optimizer patches. |
OptimizeFogUpdates |
true |
Removes repetitive log spam and GC allocations in fog zones. |
OptimizeBotPlayerSearch |
true |
Fixes the multi-scout bot bug and optimizes targeting queries. |
OptimizeVoiceObscurance |
true |
Throttles voice chat obstruction raycasts and light volume checks. |
VoiceUpdateIntervalSeconds |
0.10 |
Evaluation interval in seconds for voice chat occlusion checks. |
OptimizeGrassFrustumCulling |
true |
Skips grass blade compute generation outside camera frustum. |
CacheMaterialPropertyBlocks |
true |
Eliminates per-frame heap allocations during grass rendering. |
CullDistantDynamicBones |
true |
Caps foliage spring physics simulation to 30 Hz with distance culling. |
DynamicBoneMaxDistance |
35.0 |
Distance limit in meters for full-frequency foliage physics. |
OptimizeCitadelTraps |
true |
Suspends distant swinging mace physics simulation outside range. |
CitadelTrapMaxDistance |
45.0 |
Distance threshold in meters for active swinging mace simulation. |
OptimizeGloomCalculations |
true |
Uses fast distance checks for raven perch searches in Gloom. |
OptimizeShadowDistances |
true |
Adjusts shadow distance and applies anti-acne stabilization. |
OptimizedShadowDistanceHigh |
70.0 |
Shadow draw distance in meters when shadows are set to High. |
OptimizedShadowDistanceMedium |
55.0 |
Shadow draw distance in meters when shadows are set to Medium. |
OptimizeHBAOPerformance |
true |
Caps ambient occlusion to 40m and half resolution. |
OptimizeLODScaling |
true |
Adjusts LOD bias for earlier polygon mesh transitions. |
OptimizedLodBias |
0.80 |
Level-of-Detail bias multiplier (vanilla is 1.0). |
OptimizeSmallRockDecorations |
true |
Culls distant tiny decorative pebbles beyond 50m. |
SmallRockCullDistance |
50.0 |
Maximum rendering distance in meters for small decorative rocks. |
OptimizeAnisotropicFiltering |
true |
Regulates anisotropic filtering to 4x to save memory bandwidth. |
OptimizedAnisotropicLevel |
4 |
Target maximum anisotropic filtering level. |
EnableGPUInstancingBatching |
true |
Enables GPU instancing on supported rock and prop materials. |
SafeguardParticleCuller |
true |
Prevents null reference crashes when camera is unassigned. |
SuppressRepetitiveHotpathLogs |
true |
Disables stack trace capture on standard logs to reduce CPU load. |
Installation
With r2modman (Recommended)
- In r2modman, click Import local mod -> Select file (or folder).
- Choose
Reis-PeakOptimizer. - Launch the game using Start modded!
Manual Installation
- Ensure BepInEx 5 (x64) is installed in your PEAK game directory.
- Copy the
Reis-PeakOptimizerfolder intoPEAK/BepInEx/plugins/. - Launch the game normally!