Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Editing any material in unity 2019 is incredibly slow

Discussion in 'Editor & General Support' started by zornor90, Jul 25, 2019.

  1. zornor90

    zornor90

    Joined:
    Sep 16, 2015
    Posts:
    169
    In Unity 2019.1, it takes around 5 seconds each time you change a material's parameter (from a texture to even changing the color of the albedo!!!), during which the editor freezes and you have to wait. This is a HUGE regression from previous versions, where it would immediately update as you changed it. Not sure what could be causing it as everything worked fine before we updated
     
    Last edited: Jul 25, 2019
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    3,551
    Hi, Could you please file a bug report?
     
    zornor90 likes this.
  3. zornor90

    zornor90

    Joined:
    Sep 16, 2015
    Posts:
    169
    Done, filed 1172218
     
    karl_jones likes this.
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    3,551
    Hmm it may be tricky to do much with that bug report without an example project. Does this problem happen in an empty project? It could be linked to the size of your project or editor scripts you may have running in the project.
     
  5. zornor90

    zornor90

    Joined:
    Sep 16, 2015
    Posts:
    169
    It doesn't, our project is pretty large and has a lot of assets. I can post a link to a download of the project in the bug report, if it would help
     
  6. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    3,551
    Hmm may not be a bug then. Can you try using the profiler in Edit mode to see what is taking so much time?
    Do you have any editor scripts running in the background or any AssetPostProcessors etc?
     
  7. zornor90

    zornor90

    Joined:
    Sep 16, 2015
    Posts:
    169
    Ah I didn't even think of that, so I went ahead and profiled it
    The lag seems to occur due to MaterialEditor.OnEnable() -> GC.Alloc: upload_2019-7-25_21-36-12.png