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
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug script change in b8 takes 50% longer to compile+reload than in 2020.1.17

Discussion in '2021.1 Beta' started by laurentlavigne, Feb 27, 2021.

Thread Status:
Not open for further replies.
  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,203
    Same script, same project (5x test for average):
    • 2020.1.17 takes 9 seconds
    • 20201.1b8 takes 14 seconds

    That's 50% longer iteration time and when the task at hand requires a lot of back and forth, you do notice productivity declining severely.

    I know that asset conversion and prefab are much faster but unfortunately I am not building scenes, I'm in the middle of optimization which involves slashing through a lot of code and verifying performance and breakage, where iteration time is so important to allow to go back and forth between Rider and Unity many many times. I was hoping that the listed optimizations would cover this and speed my iteration time which in turn would make this more productive.

    This regression was introduced in 2020.2 and plateaued with 2021. I think it's assembly reloading that has become much slower in the past 6 month.
    It's probably deeply rooted and I don't expect it to be fixed in this release but I logged a case anyway (1317926) and gave your team access to the full project. I hope it helps.
     
    LeonhardP likes this.
  2. valarnur

    valarnur

    Joined:
    Apr 7, 2019
    Posts:
    436
    2021.2 updated Roslyn to 5.0.102, NetCore to 5.0.2

    I wish this being updated in 2021.1Beta to get more time saving experience with scripting
     
  3. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,203
    I just noticed that 2021.1b8 and 2020.2 idle at 30% cpu usage
    upload_2021-3-1_9-42-35.png
    hot idle is logged as 1318384
    slow reload+compile is logged as 1318387
     
    nico_st_29 likes this.
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,130
  5. xoofx

    xoofx

    Unity Technologies

    Joined:
    Nov 5, 2016
    Posts:
    412
Thread Status:
Not open for further replies.