SpriteManager infinite drawcalls bug


I might be dumb, and did something that I shouldn’t… but I found something that kills me and my fps.

I tried to solve it but with no success. basically what happens:
You create a spritemanager, and you have any mesh that is active.
then you scene.freezeActiveMeshes()
now the spritemanager for some reason starts to create infinite drawcalls :thinking:
here is a repro: Spritemanager bug Playground

Ohhhhh I ll have a look ASAP, it is indeed totally a bug !!!


This will fix it in the next release: Fix infinite sprites draw in frozen scenes by sebavan · Pull Request #13131 · BabylonJS/Babylon.js · GitHub