Unity 优化(Draw Call)

介绍

        Draw Call:CPU向GPU发布渲染命令
        Draw Call越大:CPU的占有率就会越高

优化

优化DrawCall

介绍

批处理

静态批处理

要求宽松,批处理量比较大(不能移动、不能旋转)
路径

(需要勾选)

File-BuildSettins-PlayerSettings-OtherSettings-StaticBatching
动态批处理 要求苛刻,批处理量比较少

路径

File-BuildSettins-PlayerSettings-OtherSettings-

DynamicBatching

调节摄像机的渲染路径

Use Graphics Settings 正向渲染
Forward 正向渲染

Deferred

延时光照

Legacy VertexLit 旧版顶点光照

Legacy Deferred

旧版延时光照

猜你喜欢

转载自blog.csdn.net/qq_24977805/article/details/122610312