Sprite manager and draw calls


#1

Hello there,

I trying to reduce the draw calls in my project and in my in investigation I noticed that a sprite manager is taking 2 draw calls even if we have no sprite in its sprite list.

So just adding this line will cost you 2 draw calls :

var spriteManager = new BABYLON.SpriteManager("spm", "fakeurl", 1, 10, scene);

Is it a bug or there is a reason for this behavior ?

If no reason is possible to fix it in the next Babylon version ?

Cheers.


#2

Definitely a bug!!! I’ll make sure to fix it for next nightly

Thanks for reporting


#3

Ok great, I was thinking to use planes instead with billboard mode set to true but if it’s a bug I’ll wait then :slight_smile:
Thank you!