Hello all!
First of all I must apologize if I didn’t flip through all the new threads about “WebGL parsing time” a year now of the forum, but I’m really in a hurry… please forgive me!
Btw: time ago I made a very little game with Unity 5.1, with more code than data, and with the help of alexsuvorov I was able to modify my index.html to parse it much quicker (about 30% less - the trick was to load he script via tag).
Now I had to modify the project a little, but “unfortunately” I’m using Unity 5.6.2 (that create totally different WebGL files).
I did a try to simply upload these new files on our server (I thought “maybe nowadays it’s much better”) but (again) parsing time is too high.
So:
1 - I downgraded to Unity 5.5.1 (the least I can), to fit my good-old “index.html” configuration (the one that alexsuvorov suggested me to parse the script faster) with the new one, but now I got the message
“Release/*.asm.js has not been loaded”
2 - I tried to modify the name in “Release/*.asm.js” (please note that I’ve removed “gz” at the end), but during parsing I get the error “Uncaught syntax : Invalid or expected token”.
Actually I don’t know anymore how to get the same parsing time of my previous release.
I cannot downgrade to Unity 5.1 and at the same time I have people that say to me “It take too long time…” …
Please does someone could tell me how to decrease parsing time on new version?
I’ll thank a lot!!
Daniele
Hello Marco Trivellato,
thank-you for your kind reply.
I gave a look to “Unity - Manual: Deploy WebGL application” and through it I was able to configure my server for unityweb .gzip compressed files.
But:
The unityweb .gzip compressed files (created by Unity 5.6.2) take the same time to load and parse (with proper configured server) of old “.datagz” + “.jsgz” + “.memgz” (created by Unity 5.3) with standard .html file, not the modified one that load the script via tag.
I don’t know how to manage these new unityweb files, so to parse them faster with some trick (like I was used to do with older Unity version).
So, unfortunately, for me there’s no benefit to use these new compressed files…
Do you have any suggestion to speed-up the parsing with 5.6.2 or 5.5.1?