I have got some weird problem that I do not understand.
I load my level assets asynchronously with a loading screen. And when I get my promise resolved and remove the loading screen, the level takes 6 sec or more to appear on screen.
I checked Chrome’s debugger, and it seems that there are two odd things occurring.
First, there are plenty calls to
ConvertCubeMapToSphericalPolynomial which freeze the first frame of the game for ~6sec:
Second, it also seems that the textures of the game level take a very long time to be loaded (I load the scene
I tested the loading time of
tileset.babylon in the playground, and it is much faster (less than 1 sec) than on my local server ^^ which is weird:
So it seems that there is something weird going on…
Is there anybody who know where
ConvertCubeMapToSphricalPolynomial is coming from? and whether it could be slowing down the texture loading?
Thank you very much for your help