需要创建大量的立方体,每创建一个drawcall增加1,有什么优化方案
我记得好像是有批次渲染,,,
1赞
使用同一个材质,然后在材质上钩选USE BATCHING。
2赞
v1.1 中建议使用 USE Instancing
https://docs.cocos.com/creator3d/manual/zh/engine/renderable/model-component.html#instancing-合批
2赞
创建几种材质的立方体,游戏过程中需要频繁的替换材质。