What's the draw call if I use material instances for a static mesh?
I just create a static mesh using BSP geometries and I assigned material instances for the surfaces. When I created a static mesh from the BSP, the mesh has 6 materials but all of them are material instances from the same base material. In this case, what's the draw call? Is it optimized or should I look for another solutions for the optimization such as creating model in a 3D program?
asked Jan 23 '19 at 12:39 PM in Using UE4
In the case of a BSP you will have the same amount of drawcalls if you have material instances for the faces since each face of the bsp has a drawcall. For instance a cube has 1 drawcall for each visible face while a mesh will have 1 drawcall for the mesh and 1 procedure call for each shader applied to it (2 drawcalls in total if you have 1 material instance for each face if each they are based on the same parent).
As a rule of thumb, use bsps only while prototyping/blocking your levels, but you are always better off with externally created static meshes (You can also generate a static mesh based on your bsp in the settings of the brush you are editing).
answered Jan 23 '19 at 02:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here