Hi all,
I frequently get my WebGL app’s unresponsive warning issue. It’s downsized from 100 MB to 35 MB in my build. I have a single Unity scene in my build that has the asset bundle downloading function.
My build compression type is brotli, and I’m using an Amazon S3 server to host my WebGL build. I have updated many things and researched to avoid the initial issue of non-responsiveness. But the problems remain unsolved after every attempt.
To shorten this issue.
I have attached my project details please check it.
kindly provide suggestions, clarifications, and your invaluable knowledge.
Thanks in advance.
Check the developer console in the browser for any issues. Make sure to test with development builds. The unresponsiveness could be due to an infinite loop, or an excessive amount of code that needs processing every frame.
For instance, if you happen to instantiate objects with MeshColliders on them these will take a significant hit on a Web build. Even just spawning a single one can dip the framerate, if you spawn several in quick succession you could quickly overload the single thread. Other common issues include loading or instantiating assets with deep hierarchies and/or expensive component initialization, as well as logging things every frame - for me this is the most common issue ie if you get a NullreferenceException thrown every frame this will be costly, and with “explicitly thrown exceptions only” you will not even see those unless you look in the browser dev console.
Btw, unless you have specific requirements prohibiting it you may want to enable WebAssembly 2023 for an overall free speed boost.