Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. 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,457
    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:
    441
    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,457
    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,138
  5. xoofx

    xoofx

    Unity Technologies

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