๐Ÿงต#Remote Skybox

marwi123
marcel ๐ŸŒต โ†—

Hi, thanks for the report.

do you have a repro on GitHub or Stackblitz and live link by any chance?

gilderko

I will try to create a small reproducible project but the project is private and the live app is licence and sign in only

gilderko

Ok so I dont have a repro but thought the issue comes from the KTX2Loader.js or rather how it used. If you request remoteskyboxes at the same time the KTX2Loader will use a taskCache. So that way when the first request comes in it will spawn a Promise to transcode the texture and the second will hook to an existing Promise and that way they both get the same Texture. When the first context then gets disposed it will dispose of the texture and therefor free its resources for all other contexts too and that causes the texture to be deleted. Will send message when I manage to make a repro.