GPU Instancing测试

https://www.xuanyusong.com/archives/4488

如果是不动的物体勾选static静态合并批次(40-50帧率)

自定义Shader中勾选Enable GPU Instancing

帧率竟然还不如静态合批次(帧率 30-40)

所以,静态不动的物体就没必要用上面的方法了,于是我又测试了Graphics.DrawMeshInstanced()方法,终于满意了。(稳定60帧)

如果直接勾选Enable GPU Instancing进行渲染个人测试感觉效率的确不如静态合批次。当然手机上要重新测试一下。

 1.Static对象不能使用GPU Instance,静态对象优先使用静态合并

GPU Instancing测试

2. PC上测试StaticBatchingUtility.Combine + Static 可能更优

GPU Instancing测试Static + GPU Instance

GPU Instancing测试StaticBatchingUtility.Combine + Static

GPU Instancing测试 GPU Instance