unity
resource_error
ai_generated
true
遮挡剔除:内存预算超出。请考虑减少遮挡物数量或在播放器设置中增加内存预算。
OcclusionCulling: Memory budget exceeded. Consider reducing the number of occluders or increasing the memory budget in Player Settings.
ID: unity/occlusion-culling-memory-budget-exceeded
80%修复率
85%置信度
1证据数
2024-02-15首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 2021.3 | active | — | — | — |
| 2022.3 | active | — | — | — |
| 2023.1 | active | — | — | — |
根因分析
遮挡剔除数据超出分配的内存预算,导致烘焙失败或运行时性能下降。
English
Occlusion culling data exceeds the allocated memory budget, causing baking failure or runtime performance degradation.
官方文档
https://docs.unity3d.com/Manual/occlusion-culling.html解决方案
-
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.
-
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.
-
Use occlusion areas to limit culling regions, reducing overall data. Place an OcclusionArea component over high-density zones only.
无效尝试
常见但无效的做法:
-
40% 失败
Simply increasing budget without reducing data can lead to memory spikes and crashes on low-end devices.
-
60% 失败
Disabling culling removes performance optimization, causing draw calls to spike in large scenes.
-
70% 失败
The error is not version-specific; upgrading alone does not reduce data size.