I’m adding .ktx2 textures at runtime. I used toktx to compress them with --uastc. Now when I add them at runtime, the transcoders are getting downloaded multiple times:
@Regit Do you mind creating a playground with an example? Then I can debug it more quickly.
The KTX files are being decoded in web workers by default. Since they are separate scopes, the top level JS decoder files will be imported multiple times (hopefully the browser is smart enough to not actually redownload the files). The WASM ideally could be downloaded only once and copied into each worker. I’m not sure if the code is done this way though.
I transfered my local project to the playground, but here it doesn’t seem to download the decoders at all? (as shown in the Network tab).
There’s something off here still right?