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

Bug building to NX is struggling through scenes

Discussion in '2021.2 Beta' started by laurentlavigne, Jul 9, 2021.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    assets are fine, scene building is impossibly slow
    upload_2021-7-8_23-36-54.png

    and the cancel button isn't working so bug log will have to wait a little
     
  2. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    hop
    1349093
     
  3. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    hi!
    you can make the build go faster if you turn off "Optimize mesh data" in Player settings while we're making mesh data optimization faster on our end
     
  4. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    didn't know that per scene were being mesh optimized, I guess static mesh
    this used to be fast in 1.17 so ... regression ?
     
  5. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    We'll see :)
     
  6. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,618
  7. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    Update: it's not a regression.
    A fix is coming! Testing on your project, the build time on 2021.2 went down from 1h17m to 14m22s with mesh data optimisation on and 37m43s down to 11m32s with mesh data optimisation off.
    Thank you for the bug report! :)
     
  8. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    A fix can/will be found in 2022.1.0a7, 2021.2.0b13, 2021.1.22f1.
    2020.3 and 2019.4 to follow - I'll post here when I know the fix versions.
     
    sebas77 and LeonhardP like this.
  9. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    Many thanks for backporting this to 2019.4.
     
    aleksandrk likes this.
  10. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,643
    sorry to be clear, has this just been introduced? I find so weird that I identified the problem the same day I updated unity and you posted the fix.
     
  11. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    Optimize mesh data has been around for quite a while. Builds taking significantly longer when it's turned on has also been a thing since its introduction.
     
  12. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,643
    No I meant the bug that you fixed, has the bug been introduced lately?
     
  13. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    No, it's been there for quite a while. It's just much more noticeable in 2021.2, and that's because URP shaders have way more variants now.
     
    sebas77 likes this.
  14. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,643
    ok looking forward for the backported fix then.
     
  15. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    The fix will also be available in 2020.3.19f1 and 2019.4.31f1.
     
    sebas77 likes this.