Search Unity

rebuild bundle on mac takes 2 hours, while 7 min on windows

Discussion in 'Asset Bundles' started by ranye, Dec 23, 2019.

  1. ranye

    ranye

    Joined:
    Sep 10, 2012
    Posts:
    18
    i setup a jenkins builder on mac with 4 unity project for each platform,
    a few days ago rebuild 4 platform bundle at the same time on mac can be done within 10 minutes.

    but now
    one platform takes 2 hours, and 3 platform can't be done in 10 hours on mac,
    incremental build still take only a few minutes witch is the same as before,
    and wired thing is that on windows building bundle for 1 platform can still be done in 10 minutes.

    on mac i can see the build bundle progress Dialog title "compiling shader variant" come out lots of times, each time processing the same standard and legacy shaders witch is not used by my asset and not include in my shaderVaraintCollection.

    building is fast at first, from some point it becomes very slow

    now i still don't know witch assets cause this problem, so no repro can be make to summit a bug.
    unity version is 2019.2.11f1

    upload_2019-12-23_11-53-37.png
     
    Last edited: Dec 23, 2019
  2. ranye

    ranye

    Joined:
    Sep 10, 2012
    Posts:
    18
    i find out why it's so slow on mac, by using instrument time profiler.
    it's the progress bar

    unity 2019.2.17f1
    macOs 10.14.6

    batch mode will be ok for jenkins builder, but still a big problem for desktop development

    upload_2019-12-25_15-58-2.png
     
    Last edited: Dec 25, 2019