- Home /
MaterialPropertyBlock (MPB) - Does it effect performace if MPB has property that shader doesn't have?
I have a material property block (mpb), I use this mpb for 2 materials:
Material A has _Color property & _Random property.
Material B only has _Color property.
the color of material A & B suppose to be the same, so I use one mpb for these 2 materials. So the mpb holds _Color & _Random property. But I wonder if it effects performance when I use the mpb for Material B (which doesn't have _Random property).
Everything works properly, all I worry is just performance, should I use 2 mpb in this case, or just keep using 1 mpb?
Thanks.
Your answer
Follow this Question
Related Questions
Draw Call Optimization 3 Answers
Performance gain through recycling Objects? 1 Answer
What's a good draw call count? 2 Answers
Android Best performance 1 Answer
Need optimizing tips for mobile third person shooting game. 2 Answers