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

Unity WebGL takes a long time to load in headless Chrome/Firefox

Discussion in 'Web' started by james_3drepo, Feb 16, 2018.

  1. james_3drepo

    james_3drepo

    Joined:
    Jun 28, 2017
    Posts:
    6
    We've got some automated end-to-end tests (using Protractor) for our web application that includes Unity WebGL.

    We moved from Unity 5.5.3 to 2017.3 which is when it became very noticeable (it took a while to load unity before but it never timed out). We have set our time outs to very high numbers (5 mins +) and unity still hasn't finished loading in headless mode. Our CI now fails because it times out as it takes so long. We can get the tests to pass run in none-Headless mode but when we enable Headless (--headless) it fails due to timeouts.

    Doing a little bit of profiling we suspect the wasm-to-js function is causing the problem.



    Does anyone have any experience with this or any clues as to what might be causing this to happen?