Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

WebGL - loading time for the smallest module ?

Discussion in 'WebGL' started by Fattie, Apr 3, 2017.

  1. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    475
    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
     
  2. ypoeymirou

    ypoeymirou

    Joined:
    Jul 31, 2015
    Posts:
    54
    Using WebAssembly with 5.6, I have it reduced to 3 seconds
     
    Fattie likes this.
  3. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    475
    hey thanks a million for that tip man !!
     
  4. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    475
    which Beta are you using, Ypoe ?
     
  5. ypoeymirou

    ypoeymirou

    Joined:
    Jul 31, 2015
    Posts:
    54
    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.
     
    Fattie likes this.
  6. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    475
    Ah! so it's useless for ordinary Chrome browser in the wild ! :/

    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
     
  7. Rbhaniwal

    Rbhaniwal

    Joined:
    Jan 23, 2015
    Posts:
    33
  8. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    475
    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.
     
  9. ypoeymirou

    ypoeymirou

    Joined:
    Jul 31, 2015
    Posts:
    54
    @Fattie

    In fact, WebAsembly is in Chrome 57, which is the now the public release (so the one into the wild :)
     
  10. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    475
    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.
     
  11. mikaelwallen

    mikaelwallen

    Joined:
    Jun 3, 2016
    Posts:
    56
    Fattie likes this.
  12. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    475