Currently on version r92. I’ve noticed that the initialization time for my complex shader can take anywhere from 5 - 60 seconds. This only happens on the first frame that it is being rendered, after which it runs smoothly. Has anyone had a similar problem? If so how did you remedy it?
My shader code can be found on this github repo if anyone wants to take a look at it and possibly suggest some optimizations.
Normally, the related overhead is produced by the compilation of the shader programs. Unfortunately, I’m not able to reproduce your issue on my computer. The shader runs almost instantly in latest Chrome and Firefox on macOS (10.14.2).
Are you testing your app on Windows? The shader compilation takes more time when WebGL is targeting DirectX.