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 ?
Another things, when I set the property “isVisible” to false of all SpriteManager’ sprites I still have a draw call.
Could we consider this behavior as a bug as well or should we consider it’s the dev job to release the sprite manager or change it’s layerMask to avoid this useless draw call?
As you can see I have 3 sprites in my sprite manager, all those sprites have their property “isVisible” switch to false but we still have 3 draw calls.
But after all it’s maybe better this way for performance reason.
If Babylon core has to check all sprites status when one sprite setting is changed it’s not so good and it’s better to check yourself in this case I guess.