# 遮挡剔除：内存预算超出。请考虑减少遮挡物数量或在播放器设置中增加内存预算。

- **ID:** `unity/occlusion-culling-memory-budget-exceeded`
- **领域:** unity
- **类别:** resource_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

遮挡剔除数据超出分配的内存预算，导致烘焙失败或运行时性能下降。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 2021.3 | active | — | — |
| 2022.3 | active | — | — |
| 2023.1 | active | — | — |

## 解决方案

1. ```
   Reduce occluder count by merging small objects or using LOD groups. For example, in a forest scene, combine 1000 individual trees into 10 LOD groups.
   ```
2. ```
   Increase memory budget in Project Settings > Player > Other Settings > Occlusion Culling > Memory Budget (e.g., from 128 MB to 256 MB) while also optimizing geometry.
   ```
3. ```
   Use occlusion areas to limit culling regions, reducing overall data. Place an OcclusionArea component over high-density zones only.
   ```

## 无效尝试

- **** — Simply increasing budget without reducing data can lead to memory spikes and crashes on low-end devices. (40% 失败率)
- **** — Disabling culling removes performance optimization, causing draw calls to spike in large scenes. (60% 失败率)
- **** — The error is not version-specific; upgrading alone does not reduce data size. (70% 失败率)
