- Home /
One mesh , one material , no textures ,but multiple draw calls
hello guys . i am working on an endless runner project , and in my project i am using object pooling , in a way that most of my environment is pooled and spawned together. so i have recently decided to reduce my draw calls (Set pass calls ). at first i had multiple fbx files , so i decided to move all my files to just one fbx . i am using houdini as modeling software , and in houdini
i 've added each of my geometries as a file node in houdini then i exported the resulting geometry as an output FBX.
and houdini turns this for me to only ONE geometry. when i export this geometry and bring it to unity , and i should mention , i am just using the unity default material , and no textures . when i hit play there is 5 draw calls . i know why there are 5 draw calls , because i have 5 geometries combined into one single geometry, but isn't unity suppose to use only one draw call per mesh ? here is my question , why there is 5 draw calls for only one mesh ? and i 've read one answer that in forward rendering there is one draw call for each gameobject , and my camera's rendering is forward . and if problem is in houdini side , i would appreciate if you tell me how to fix it . thanks a lot.
You may have 5 submeshes, all have own material (even if it is the same one)
@misher no they don't have their own material , not in houdini , and not in unity . in houdini i didn't add any materials , i just add a UVUnwrap node , and on the unity , in the model import panel and materials tab , i have unchecked the import materials option . i wanted to attach more pictures but , the website limited me to attach only two pictures.
Try add another copy of your model to the scene and see if you have 5+1=6 draw calls, there can be other hidden objects in scene having other 4 draw calls
How many triangles and vertices does your mesh have in total? It is possible that it doesn't fit into one draw call, and that's why it needs to be separated into multiple ones.
Answer by SunnyChow · Sep 03, 2018 at 07:55 AM
Try placing a cube into the scene instead of your model, it may get the same drawcall. I feel unity need other drawcall for the shadow or background
@SunnyChow yes , you're right , i have placed a simple cube , and it is still 5 draw calls , i have a feeling that there shouldn't be 5 draw calls for just one cube because i have seen many articles that people drop their drawcalls to 1 , do you know how can i drop it to 1 drawcall without getting rid of shadows and all that stuff?
I don't know. I don't even know if it's possible.
Answer by angrypenguin · Sep 03, 2018 at 06:37 AM
Is your mesh internally sill composed of 5 sub-meshes? If you click the arrow next to your model in the Project view what's in there?
@angrypenguin , in unity it is not , it is just one model that has one mesh , and inside houdini , it is a single piece of geometry . here is a picture : https://drive.google.com/open?id=1WixGgcm8$$anonymous$$sjBfc6lqyAGsnY1qhjZDO3B
Your answer
![](https://koobas.hobune.stream/wayback/20220612173946im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why so many SetPass Calls? 1 Answer
How to increase fps in my game? 2 Answers
Optimisation: fewer draw calls or smaller draws? 1 Answer
Sharing materials in unity 1 Answer