- Home /
static batching
if i use static batching, what does it mean if i have, say, 17 draw calls and 20 batched? does it mean that i have just 1 draw call, since there are more batched than the number of original draw calls? i am a bit unclear about the relation between these 2 numbers. also, when atlasing, is there some sort of sweet spot where dimensions would be so big, it would decrease instead of increasing performance? (assuming i am using static batching) Thanks. Oren.
Answer by Eric5h5 · May 21, 2012 at 01:34 PM
It means you have 17 draw calls, as it says. It would not be possible to have more batched draw calls than there were originally. If you had 1 draw call and 20 batched, that means you had 20 originally and now have 1 because of batching. 17 and 20 means you had up to 36 originally.
ok, i see, that's right. i had 36 originally. but all of them are duplicates of each other, they are the same geometry with the same material and they are all static. so why am i left with 17? why are only 20 being batched? shouldn't it be batched to just 1?
$$anonymous$$ysterious are the rules of batching, and it is not for the likes of mere mortals to know them.
If you have the same material with the same object, but you change any aspect of that material at runtime (texture, color, blend...), the objects will not be batched.
Your answer
![](https://koobas.hobune.stream/wayback/20220613071739im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
What can you change for a statically batched mesh? 1 Answer
Static Batching & Occlusion Culling 1 Answer
Static Batching per scene setting? 0 Answers
static batching on dynamically instantiated content 4 Answers
LODGroups still statically batch? 1 Answer