Node material dispose memory leak

Playground: https://playground.babylonjs.com/#J9J6CG#20
After loading then disposing a NodeMaterial 20 times, the memory will increase to 110MB rather than baseline 40MB.

Let me have a look

I believe the image string stored in the asset loaded from NME is the culprit
Investigating…

Ok it is fixed! thanks for the heads up

It will be in the next nightly

4 Likes

Thx! Can you give me the PR link?
I am super curious how this problem is caused.

3 Likes