Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Build for web takes forever

Discussion in 'Project Tiny' started by Ziron_, Jun 13, 2020.

  1. Ziron_

    Ziron_

    Joined:
    Aug 29, 2017
    Posts:
    3
  2. Maras

    Maras

    Joined:
    Dec 11, 2012
    Posts:
    131
    Hey,
    the first web build usually takes quite some time. It seems that there is an error message from your previous build. Can you inspect it for more info?
     
  3. Ziron_

    Ziron_

    Joined:
    Aug 29, 2017
    Posts:
    3
    I canceled it, that was the error
     
  4. Ziron_

    Ziron_

    Joined:
    Aug 29, 2017
    Posts:
    3
    How many time it usually takes?
     
  5. Maras

    Maras

    Joined:
    Dec 11, 2012
    Posts:
    131
    It took me 11 minutes to build TinyFactory for the first time.

    You can try dot net build first to check if everything is working correctly.
     
  6. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    I know it's amazing to think that you can compile to native via IL2CPP about 10 times faster than you can convert to WASM.

    I've raised this before but I think it's external to Unity technology combined with the fact you have a multi-stage build pipeline, something along the lines of C# -> IL -> IL2CPP -> CPP -> WASM.

    You can see if your anti-virus is causing excess delays by disabling it temporarily or setting up exclusions for programs in the build process, there are quite a few and they are all over the Unity Project and Unity Editor folders.
     
    Last edited: Jul 2, 2020