I use babylon 4.2 and may find a bug. When create a raw texture by calling
new BABYLON.RawTexture.CreateLuminanceTexture and update it by calling update() function, the memory of this raw texture will not be released and cause out of memory(OOM) finally.
CreateRTexture creates a red texture, meaning a texture with only the red component. I don’t know what a luminance texture is for, I have never seen it used…
Can you reproduce the problem with the 5.0 version?
I can not repro on the same chrome version with a RTX 2080 TI
It mostly looks like an internal bug in the browser.
May I ask if you look into the cpu or gpu memory ??? cause your generateRandomArray would generate a lot of garbage quickly and I wonder if the cpu memory might be at cause here ?