Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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:
    5,746
    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. valarus

    valarus

    Joined:
    Apr 7, 2019
    Posts:
    399
    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:
    5,746
    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,021
  5. xoofx

    xoofx

    Unity Technologies

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