WebGL - loading time for the smallest module?

Hey WebGL dudes -

I’m building out a minimal (indeed totally empty) WebGL project to a web site.

It seems to me, the absolute minimum load time for a unity WebGL module is about 7+ seconds.

What do you think?

for example

https://v4.tempgp.com/webgl/

is an extremely small, tiny, minimal unity webGL module - notice it takes, as I say, a good 7-10 secs to load, on various browsers. Is there anything faster?

Thanks to all the posts on here, I totally understand from you dudes how to make large webGL games load more quickly. But loading even the tiniest webGL games, does seem to take a long time - like I say it seems very hard to beat about seven seconds or so.

What’s the real deal? Cheers

Using WebAssembly with 5.6, I have it reduced to 3 seconds

1 Like

hey thanks a million for that tip man !!

which Beta are you using, Ypoe ?

5.6.0f2, but 5.6.0b11 was sufficient to see the improvements.

However, you need to use Chrome Canary Beta, as WebAssembly is not yet into Chrome stable.
(and activate flags: search for ‘webassembly’ or ‘wasm’ string in flags)

It is already released in stable Firefox though.

I don’t now what is the status for MS Edge.

1 Like

Ah! so it’s useless for ordinary Chrome browser in the wild ! :confused:

Thanks for that great information man. I owe you one.

I guess it is no good for ordinary Explorer, or Safari on a Mac?

Cheers

Hello @Fattie,
I am working on a same project. But i am facing a problem. My asset bundles are downloading in editor well, but facing an issue when downloading the asset bundle in the Firefox or any other browser. Asset bundle are not downloading. I searched a lot but didn’t find any solution. Here i am sharing my screenshot of editor where everything working fine and editor too.
can you send me source code of this project or step to make asset bundle. Is server effect the webgl asset bundles. ???
Thanks in advance.



hi @Rbhaniwal - your problem seems different from the one here. I suggest, just ask a new question (both here on the forums, and also on the answers.unity site). If you like, ad a link to your new questions here, as well. Also consider stackoverflow.com, where there are nowadays many Unity questions.

@Fattie

In fact, WebAsembly is in Chrome 57, which is the now the public release (so the one into the wild :slight_smile:

hi @ypoeymirou - gotchya. Amazing info, thanks.

Something I don’t understand: say i go with that build, using WebAssembly with 5.6.

In fact, does it just completely fail for people who do not have that latest browser?

What’s the story?

Thank goodness there is someone - you - who knows something. Unity know nothing.

No, it will not fail. It will fallback to the asm.js build instead as described in the following thread:

1 Like

That’s a great tip, @mikaelwallen - thanks for that !