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. Dismiss Notice

Bug WebGL Build time over 20 minutes?

Discussion in 'WebGL' started by Radical_boy, Sep 8, 2022.

  1. Radical_boy

    Radical_boy

    Joined:
    Jan 30, 2021
    Posts:
    8
    I have a Ryzen 7 3700X and 16GB of ram.

    I tried to test build (almost empty project) a WebGL app and have gone for over 20 minutes (haven't waited until it was ready so potentially even more) on 2020, 2021 and 2022 versions. Even one on a clean project.

    My CPU is constantly over 90% (fortunately still good temps) constantly while building. Am i doing something wrong? I tried Gzip, Brotli and Disabled for Compression Method and still got same results. Anyone know how to speed up the process?
     
    Last edited: Sep 8, 2022
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,055
    First builds with IL2CPP are usually quite slow, 15 minutes isn't unusual on a fast PC (it's a C++ compilation process for WebGL - for comparison, Unreal mentions fiirst C++ build normally taking 45 minutes). Successive builds should be faster. Is the project on a fast SSD?

    8GB of RAM could be a bottleneck, for a dev system 16 GB or more are recommended.
     
  3. Radical_boy

    Radical_boy

    Joined:
    Jan 30, 2021
    Posts:
    8
    Oh yeah i was wrong i have 16 oops. I waited once and it took 47 minutes. For PC it would take around 3. Idk