Performance: NavMesh baking
MEDIUM IMPACT
NavMesh baking affects the initial loading time and runtime pathfinding performance by precomputing walkable areas.
Bake NavMesh once in editor or at scene load, then reuse baked data at runtime
NavMeshSurface.BuildNavMesh() called every frame or frequently at runtime| Pattern | CPU Usage | Runtime Impact | Memory Usage | Verdict |
|---|---|---|---|---|
| Runtime frequent baking | High CPU spikes | Frame drops and stutters | Moderate | [X] Bad |
| Prebaked NavMesh | One-time CPU cost | Smooth runtime pathfinding | Higher memory for NavMesh data | [OK] Good |