- Home /
3d character takes 17 draw calls?
I have a penguin character on ios that is taking 17 draw calls even though there are only a few textures associated with it that I can find. What determines how many draw calls a model takes and how do I consolidate them so it only takes 1.
Thanks,
Answer by Paulius-Liekis · Aug 20, 2012 at 12:33 PM
Separate meshes constitute to multiple drawcalls. Having multiple materials on a single mesh will lead to multiple drawcalls too. Multiple lights (with shadows) produce multiple drawcalls too, IIRC. All these factors multiply.
I have one mesh with 17 materials. Is there a way to consolidate them? I also have lights without shadows they seem to add a few drawcalls even without the shadows but I'm not sure why. I have another model that takes 6 drawcalls but it seems to have one material and one mesh I'd like to know if it's possible to get these models to have 1 drawcall.
Then make one material: atlas all parts into same texture (of course that means you have to use same shader for all parts, which is some times an issue).
I'm not sure about your other mesh. Try deleting it and check if drawcall count drops to 0 - maybe you have something else in the scene or Unity is rendering something...
Your answer
Follow this Question
Related Questions
UI Text and My character Draw calls 0 Answers
Find position of character in text 1 Answer
My character (fuse fbx model) gets the skin texture of the environment 0 Answers
Texture atlases on iphone 3 Answers
Runtime change texture 3 Answers