Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

WebGl deployement

Discussion in 'Web' started by rimiki, Oct 5, 2015.

  1. rimiki

    rimiki

    Joined:
    Dec 30, 2014
    Posts:
    102
    Hello,

    I create a demo project WebGL and deploy it using iis.
    When opening the page it take more than 5 min to open the app !!
    Is there a solution to fix this problem?

    Thank you.
     
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    how big is your build ? (look at the Release or Compressed folder depending on which one you uploaded)

    can you tell us anything more (browser, windows/mac, etc..) ?
     
  3. rimiki

    rimiki

    Joined:
    Dec 30, 2014
    Posts:
    102
    I upload all files. My build is 158 mo.
    The browsers works with Unity OpenGl I think is Firefox and Chrome which I tried with Windows OS.
    Please let me know if you have other questions.
     
  4. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    158mb ? I assume you uploaded a Development build, which is not recommended and indeed would explain why the page takes long to load.

    Have a read here for more info (see 'Distribution size' section)
     
  5. rimiki

    rimiki

    Joined:
    Dec 30, 2014
    Posts:
    102
    Thank you a lot, I followed the article, now I have 50 mo. I'm going to test online if it's running fast. :)
     
  6. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    That's better....but it's still big so you'll probably want to reduce the build size even more.

    In addition, you should configure the server so that you can use Compressed folder.
     
  7. rimiki

    rimiki

    Joined:
    Dec 30, 2014
    Posts:
    102
    How could I configure the server to use Compressed folder?
     
  8. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Honestly I am not sure how to do that with IIS. You should check the documentation, or perhaps, there is someone else here in the forums who already did that who can help you.

    If you use Apache it should just work, as per our docs: "If you are hosting your files on an Apache web server, Unity will write an invisible .htaccess file into the build results folder, which tells Apache to compress the transfers, so this should just work. If you are using other web servers, check your server’s manual."
     
  9. rimiki

    rimiki

    Joined:
    Dec 30, 2014
    Posts:
    102
    ok, Thank you.
     
  10. rimiki

    rimiki

    Joined:
    Dec 30, 2014
    Posts:
    102
    It spend 2min and half to open my application on the web that's wierd :/