Error Triage Hub (10)
Navmesh AI, Cargo Scientists & Tunnel NPC CPU Spike
Unthrottled NPC pathfinding updates at 10 Hz starve player combat ticks on mid-tier processors.
Convar: ai.tickrate 5 | Saving: 2.5–4.8 ms per main frame
Symptom Signature: Lag Spikes When Cargo & Labs Are Active
Server FPS dips sharply whenever players clear Oil Rig, Military Tunnels, Underwater Labs, and Cargo Ship concurrently. Profiling logs show AIThinkManager and NavMeshAgent updates consuming over 25% of main-thread frame time.
Root Cause: High NPC Density & Rapid AI Tick Polling
Each active scientist evaluates line-of-sight raycasts, cover points, and NavMesh queries. Custom monuments or NPC spawn plugins double entity pathing queues unless ai.tickrate and sleep distances are tuned.
Measured Thresholds & Configuration
| AI Workload | Default Tick Cost | Tuned Cost (ai.tickrate 5) |
|---|---|---|
| Oil Rig + Cargo Active | 4.6 ms/frame | 2.3 ms/frame |
| Custom NPC Plugins | 7.8 ms/frame | 3.9 ms/frame |
| NavMesh Bake at Boot | +45s boot time | 16–22s on NVMe + VDS |