Static Batching Breaking Problem

Symptoms

  • My scene contains a group of static Mesh Renderers and a dynamic/ non-static Mesh Renderer. For some reason, the static Meshes are being split into separate draw calls.

Cause 

Unity does a rough front-to-back sort for opaque objects, to increase GPU efficiency. This change can result in more batches (more CPU work).

Resolution

If you know your application is more CPU-bound, then turning this behaviour off might be useful, e.g. "Camera.main.opaqueSortMode = UnityEngine.Rendering.OpaqueSortMode.NoDistanceSort;"

Please note that this sorting is done by the CPU, and only if it will benefit the GPU, for example this is off by default when on PowerVR/Apple GPUs because the geometry already gets sorted front-to-back by the GPU.

 

From:https://support.unity3d.com/hc/en-us/articles/207535646-Some-of-my-static-batching-is-being-split-into-separate-batches-

More:https://docs.unity3d.com/ScriptReference/Rendering.OpaqueSortMode.html

展开阅读全文
©️2020 CSDN 皮肤主题: 大白 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值