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 and patches

Discussion in 'WebGL' started by Prii, May 1, 2015.

  1. Prii

    Prii

    Joined:
    Apr 17, 2015
    Posts:
    20
    I've looked it up from multiple sites and I can't find solid answer.

    Does WebGL builds work only if they are built with latest solid release?

    I've tried building with multiple patches but I get all kinds of different errors.
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    What do you mean?

    Our game was released with Unity 5.0 f4 and it works fine.

    The issue is that browsers are updating regularly and may break the game's compatibility.
    There was a Chrome release (M42) that broke asm.js and Unity games built for WebGL (that is already fixed in the latest Chrome version).
     
  3. Prii

    Prii

    Joined:
    Apr 17, 2015
    Posts:
    20
    What about patch releases like latest Patch 5.0.1p3?
     
  4. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    I haven't tried the latest patch yet, but I also haven't heard any complaints that the latest patch release broke WebGL.

    What errors are you seeing ?
     
  5. Prii

    Prii

    Joined:
    Apr 17, 2015
    Posts:
    20
    Im sorry, I already reinstalled latest release but I had errors with latest patch and also with one before it - those errors were different and unfortunately I don't remember those.
    I searched the error online and it leaded me to Unity forum post from the end of last year saying that webGL doesn't work with patches, only latest releases. I was hoping anyone can confirm that.

    I'll try to find time today to try latest patch again and replicate the errors.

    Im temporarily using pretty slow 3.5G wireless which makes testing frustrating. If anyone have few minutes, maybe you could take a look of these random projects and tell me how long it took to load and how fast internet are you using.
    link1 ~7.6MB
    link2 ~11.3MB
    link3 ~ 23.7MB
    Loading times seems to be extremely long for these sizes..
     
  6. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    553
    *WebPlayer* shouldn't work with patches - because the plugin that users can use is only for regular releases...
    BUT!! in WebGL you sholdn't have this problem, there's no plugin to install.
    If you can't build to WebGL with a patch - it's a bug.
     
  7. arumiat

    arumiat

    Joined:
    Apr 26, 2014
    Posts:
    321
    link1 took about ~20 seconds to load and that was at 1.6MBps download speed. Interaction once loaded is very slow though
     
  8. Prii

    Prii

    Joined:
    Apr 17, 2015
    Posts:
    20
    Slow interaction? Do you mean laggy or low framerate?

    I was wondering how to achieve .js and .data load together like here? This might speed things up even more. My loading order is one-by-one: .js, .html.mem and .data.
     
  9. arumiat

    arumiat

    Joined:
    Apr 26, 2014
    Posts:
    321
    I couldn't do much in the game once I was there
     
  10. Prii

    Prii

    Joined:
    Apr 17, 2015
    Posts:
    20
    But did it run well? We're you able to rotate object with left mouse click? Shortcut keys are 1-6.
     
  11. arumiat

    arumiat

    Joined:
    Apr 26, 2014
    Posts:
    321
    Unfortunately the asset did not feel usable. It felt to be running 10fps or less. Add an fps counter?
     
  12. Prii

    Prii

    Joined:
    Apr 17, 2015
    Posts:
    20
    Im starting to run out of ideas and motivation.. How am I supposed to run a bit more complex projects if it can't handle few walls and few scripts?

    Or does max settings and 2 post-effects really have so huge imapact on so little project?
     
  13. Prii

    Prii

    Joined:
    Apr 17, 2015
    Posts:
    20
    I've made some changes. Let me know if you have time to try. :)

    Link

    I would also appriaciate if you gave me the specs of your PC and tell me if download speed you told me is from speedtest.net or what internet provider says.

    Changes: quality from max to min, no shadows..
     
  14. arumiat

    arumiat

    Joined:
    Apr 26, 2014
    Posts:
    321
    2.5GHz i7 4710 // 16gb ram // windows 7 64bit // nvidia gtx870M 6GM VRAM // firefox latest. Currently getting ~7Mbps download speed.
    pass: unity


    I am sure that quick progress will be made on getting webGL working better, keep working to get what you have working in a simple form, don't be disheartened
     
  15. Prii

    Prii

    Joined:
    Apr 17, 2015
    Posts:
    20
    There seems to be a big problem with different hardware/sofware because I have tried it with multiple desktops and laptops and I didn't have problems you have.

    Thank you for your time and effort. I'll keep looking for better solutions and controls for every device.


    Anyone reading this feel free to try those links and let me know if you also have problems using it.
     
    Last edited: May 3, 2015