Search Unity

Why WebGL sometimes does not load?

Discussion in 'Web' started by roseportalgames, Jan 21, 2019.

  1. roseportalgames

    roseportalgames

    Joined:
    Aug 9, 2017
    Posts:
    173
    I've got a game online and sometimes it looks, but sometimes it 'hangs' maybe halfway or 3/4 the load bar. Then I refresh and it loads again up until this point.
    But then sometimes it will load...

    What can I do?
     
  2. roseportalgames

    roseportalgames

    Joined:
    Aug 9, 2017
    Posts:
    173
    20% of the time that I load my WebGL game, it does not load fully (of course I have to clear the cache to try loading it again).

    I'm wondering why this is and how I can avoid it?

    It usually stops loading around 1/4 or 3/4 into the load bar.

    This is the project:

    http://www.roseportalgames.com/modules/Memory Game/index.html

    This is a screenshot of when it hangs in Google Chrome on Windows:

    https://imgur.com/a/VtkjmUK

    The load bar will not go further, or it will take a very, VERY long time to load (5 minutes). Of course any user will have closed it down by then.

    The game is only like ~30MB.

    Perhaps there's some publishing settings that are incorrect?
     
  3. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    700
    Could it be a connection issue? Have you tried using a different host like aws?
     
  4. roseportalgames

    roseportalgames

    Joined:
    Aug 9, 2017
    Posts:
    173
    Could be, but my server should be fast (VPS). I'll try it on another server per your advice, regardless, and report back here.

    Could you please take a look at my publish settings?

    https://imgur.com/a/ARxZWhE

    Is it true that slow WebGL load times are a common thing? Can something be done about it?
     
  5. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,913
    Same here. I have to CTRL-F5 to force it to load sometimes.
     
  6. vinnieg

    vinnieg

    Joined:
    Jan 20, 2013
    Posts:
    4
    I have the same issue.
     
  7. Swapnil_patil1998

    Swapnil_patil1998

    Joined:
    Dec 31, 2019
    Posts:
    1
    I have downloaded WebGL but in build settings "Build button is disabled".In short WebGL is not working .Anyone can solve my issue,please?
     
  8. IOU_RAY

    IOU_RAY

    Joined:
    Jul 25, 2017
    Posts:
    127
    Many players have the same issue with our webgl builds...
     
  9. ammar_12435

    ammar_12435

    Joined:
    Jun 28, 2018
    Posts:
    24
    Since you have data caching enabled, it may be because the indexed db call is timing out. We are facing this issue too. More info on how to deal with it is here.