- Home /
Dynamic batching not working?
Hello everyone.
I seem to have a problem with the dynamic batching (using unity 4.1.5f1 pro).
I have 40 different meshes used to make 80 gameobjects (each mesh is used twice).
The first 40 are using a total of 8 materials and the second 40 are using only one material.
As I understand it (maybe I got it wrong), I should get a total of 9 draw calls.
But instead, I'm getting 80 draw calls.
More information: The materials I'm usaing have no textures, only color. I'm not modifying the materials in any way, so no instances are created (also checked the inspector while running).
Any ideas?
Thanks.
After testing for a while, I found out that the cause of this, is the shader I'm using.
I'm using: Transparent_Single_Color_Shader.
Any ideas why the batching isn't working for this shader?
I might be wrong but i think any materials with alpha in will break batching. $$anonymous$$ight give the material you posted a test and see if i can find out.
Your answer
Follow this Question
Related Questions
How performance heavy is dynamic batching? 0 Answers
Same material but lack of Single Draw Call ? 1 Answer
How do you get proper static batching? 1 Answer
Huge texture atlas and dynamic batching of particle systems 0 Answers
Understanding draw calls 0 Answers