There is little that can be done here. I am trying to think if it is possible to decode the image in an outside thread, but webgl is running in the main thread, so I can only assume it will bring nothing.
So it seems that it decodes each face before creating the cubemap it has sense but I wonder if there is any way to make the cube in Ram before transcoding so you only need to transcode once instead 6 times.
As I said basis files are needed to be loaded and so, and they have no this issue, that’s why I suspect that transcoding is they key.
Anyway is there any other alternative than Basis (it is really a pity about the loss of quality and yellowish colors and dds files are so large) to make it smoother?
My suspects were right and decoding took most of the time, it seems that there ImageLoader has the same problem but ImageBitmap can decode it asynchronously, is there any way to make something like that in Babylon?
In the sample, you can press 1 for using the ImageLoader (same issue than using Babylon) 2 for use ImageBitmap, and 3 to reset.
And your cubemap is made with svg? Or are you just challenging (fair enough)?
Though, I believe an svg would not be of such size and the lag would remain minimal, no? Depends of course on what your svg is made of? Can’t help but wondering . May be you could share this use case so we can figure? Meanwhile, have a great day