Unity 降低 Batch

Batch一般指代经过打包之后的Draw call。

1. 静态批处理:

设置:Editor/Project Settings/Player/Other Settings/Static Batching 勾选【默认勾选】

要求:勾选 Inspector/Static/Batching Static

缺点:在游戏中不能移动,旋转或缩放,增大内存的开销。

2. 动态批处理:

设置:Editor/Project Settings/Player/Other Settings/Dynamic Batching 勾选

要求:使用相同材质

缺点:不可合批限制较多,https://github.com/Unity-Technologies/BatchBreakingCause

3. UGUI Sprite Atlas:

设置:Editor/Project Settings/Editor/Sprite Packer/Mode 选择Enabled

创建 :Create/Sprite Atlas

导入: 将Sprite导入Sprite Atlas,可拖拽或添加。

扩展资料:

https://blog.csdn.net/lzhq1982/article/details/89558550

https://blog.csdn.net/lzhq1982/article/details/89558992

原文地址:https://www.cnblogs.com/Joke-crazy/p/12884263.html