Search Unity

Bug Very high build time for ios after upgrade

Discussion in 'Unity Build Automation' started by iagocco, Nov 23, 2022.

  1. iagocco

    iagocco

    Joined:
    Feb 3, 2019
    Posts:
    12
    Hi, after upgrading from unity 2020.3.35f1 to 2020.3.41f1, the build time for ios got 4x+ slower on cloud build.
    This happens in all my projects, larger builds fail because of 24h timeout, other developers have reported the same.
    All times have an absurd increase:

    - Total time:

    Unity 2020.3.41f1 (2022-11-23)
    Windows 01:25:18
    Android 01:29:42
    iOS 05:32:25

    Unity 2020.3.41f1 (2022-11-15)
    Windows 01:21:04
    Android 01:43:23
    iOS 05:04:43

    Unity 2020.3.35f1 (2022-11-14)
    Windows 01:28:24
    Android 01:48:19
    iOS 01:14:56

    - Steps:

    Unity 2020.3.41f1 (2022-11-15)

    Build player 14.90m
    Prepare assets for target platform 768.65ms
    Building scenes 1.05m
    ...

    Unity 2020.3.35f1 (2022-11-14)

    Build player 0.08m
    Prepare assets for target platform 360.16ms
    Building scenes 5.37s
    ...

    - Logs:

    Unity 2020.3.41f1 (2022-11-15)

    27890: [2022-11-16T07:08:39Z - Unity] Preloading 0 native plugins for Editor in 0.00 ms.
    27891: [2022-11-16T07:08:39Z - Unity] Refresh completed in 15528.222914 seconds.
    27892: [2022-11-16T07:08:39Z - Unity] RefreshInfo: RefreshV2(ForceSynchronousImport) scanfilter:
    27893: [2022-11-16T07:08:39Z - Unity] RefreshProfiler: Total: 15528222.756ms

    Unity 2020.3.35f1 (2022-11-14)
    9956: [2022-11-14T21:06:55Z - Unity] Preloading 0 native plugins for Editor in 0.00 ms.
    9957: [2022-11-14T21:06:55Z - Unity] Refresh completed in 2412.558431 seconds.
    9958: [2022-11-14T21:06:55Z - Unity] RefreshInfo: RefreshV2(ForceSynchronousImport) scanfilter:
    9959: [2022-11-14T21:06:55Z - Unity] RefreshProfiler: Total: 2412558.424ms

    Unity 2020.3.41f1 (2022-11-15)
    21322: [2022-11-16T06:17:52Z - Unity] Start importing Assets/Bundles/Worlds/Assets/Skybox/Space/Space_Cold_Nebula_Starless/AllSky_Space_ColdNebula_Equirect.png using Guid(6c38d422dd3b0435cb4223886c90a4cd) Importer(-1,00000000000000000000000000000000)
    21323: [2022-11-16T06:20:00Z - Unity] -> (artifact id: '0b572209803127fc8560ea525306f42b') in 127.735593 seconds

    Unity 2020.3.35f1 (2022-11-14)

    8132: [2022-11-14T20:58:22Z - Unity] Start importing Assets/Bundles/Worlds/Assets/Skybox/Space/Space_Cold_Nebula_Starless/AllSky_Space_ColdNebula_Equirect.png using Guid(6c38d422dd3b0435cb4223886c90a4cd) Importer(-1,00000000000000000000000000000000)
    8133: [2022-11-14T20:58:32Z - Unity] -> (artifact id: '8faf1696a5e99726626e7bd30dd2a2f2') in 9.837654 seconds

    Unity 2020.3.41f1 (2022-11-15)
    30072: [2022-11-16T07:10:56Z - Unity] Compiling shader "Standard" pass "FORWARD" (fp)
    30073: [2022-11-16T07:10:56Z - Unity] 96 / 96 variants left after stripping, processed in 0.00 seconds
    30074: [2022-11-16T07:10:56Z - Unity] starting compilation...
    30075: [2022-11-16T07:10:58Z - Unity] finished in 1.29 seconds. Local cache hits 0 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 96 variants (5.07s CPU time), skipped 0 variants

    Unity 2020.3.35f1 (2022-11-14)
    12139: [2022-11-14T21:08:09Z - Unity] Compiling shader "Standard" pass "FORWARD" (fp)
    12140: [2022-11-14T21:08:09Z - Unity] 96 / 96 variants left after stripping, processed in 0.00 seconds
    12141: [2022-11-14T21:08:09Z - Unity] starting compilation...
    12142: [2022-11-14T21:08:09Z - Unity] finished in 0.17 seconds. Local cache hits 96 (0.68s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time), skipped 0
     
    Last edited: Nov 23, 2022
  2. Carl_UnityDSE

    Carl_UnityDSE

    Unity Technologies

    Joined:
    May 25, 2022
    Posts:
    59
    Hello,
    The delay could be caused by our post-export APIs, or changes that occurred after the Unity version switch.
    For further investigation, please submit a ticket using the email: cloudbuildsupport@unity3.com.
    This will help us check the builds as well as their configurations and logs in full.