BabylonJS / Babylon.js

Babylon.js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.
http://www.babylonjs.com
Apache License 2.0
23.17k stars 3.42k forks source link

KTX decoder appears to leak memory each time it is used #11839

Closed bghgary closed 2 years ago

bghgary commented 2 years ago

There are two forum issues that are possibly the same issue: https://forum.babylonjs.com/t/how-to-release-ressources-for-ktx2-textures/25176 https://forum.babylonjs.com/t/opacitytexture-not-working-on-ios-15-devices/25102

The former is more directly indicating there is a leak. The original issue for second link is already fixed, but the scenario will crash when loading lots of KTX textures which I suspect may be because of the memory leak. I've already spent some time looking into the memory leak, but haven't figured out the root cause yet.

See the forum issues for a repro.

deltakosh commented 2 years ago

cc @Popov72 just in case he is bored ;)