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

Material Editor extreme lag

Discussion in 'Graphics Experimental Previews' started by pointcache, Oct 27, 2018.

  1. pointcache

    pointcache

    Joined:
    Sep 22, 2012
    Posts:
    579
    2018-10-27_14-29-06.gif

    upload_2018-10-27_14-40-6.png


    Any modification to Lit material causes extreme lag.
    Any property.

    hdrp 4.0.1,
    win 10, i7 4790, gtx 980,
    2018.3.0b7
     
    io-games likes this.
  2. pointcache

    pointcache

    Joined:
    Sep 22, 2012
    Posts:
    579
    upload_2018-10-27_14-49-30.png

    What the hell.

    upload_2018-10-27_14-51-36.png
     
  3. pointcache

    pointcache

    Joined:
    Sep 22, 2012
    Posts:
    579
    One click on the material property - 11938 get full name calls.


    Bug case
    1094991
     
    Last edited: Oct 27, 2018
    Peter77 likes this.
  4. RecursiveRuby

    RecursiveRuby

    Joined:
    Jun 5, 2013
    Posts:
    163
    I'm getting this as well. Makes modifying materials borderline unusable. Seems to be worse in larger projects although I've not been able to identify what causes it to get increasingly worse.
     
  5. No3371

    No3371

    Joined:
    Dec 1, 2016
    Posts:
    42
    +1, This should be very obvious though Unity not even mentioned this in patch note!
     
  6. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,982
    is this fixed in b10?
     
  7. No3371

    No3371

    Joined:
    Dec 1, 2016
    Posts:
    42
    no :(
     
  8. RecursiveRuby

    RecursiveRuby

    Joined:
    Jun 5, 2013
    Posts:
    163
    I'm honestly surprised there isn't more attention being brought to this. During play mode if I select an object in the hierarchy that has a renderer component it lags the editor so badly I have to end process and close Unity most of the time. I talked to the devs of Odin Inspector about this because I thought it was an issue with Odin when I encountered this initially. I soon after realised it wasn't to do with Odin however he did figure this out

    So hopefully the devs can look into this and hopefully figure something out.
     
  9. bjarkeck

    bjarkeck

    Joined:
    Oct 26, 2014
    Posts:
    301
    Yeah, looks like the same error we had. It's not the first time we catch Unity calling Editor.CreateEditor each frame in the inspector which it really doesn't like.

    Also made a bug report about it: https://fogbugz.unity3d.com/default.asp?1099071_p9h343vg0j0u6ig7
     
    Last edited: Nov 24, 2018
    RecursiveRuby likes this.
  10. pointcache

    pointcache

    Joined:
    Sep 22, 2012
    Posts:
    579
    So those get full name are the editor iterating all the types in the project? Dont think i have 11k types.
     
  11. bjarkeck

    bjarkeck

    Joined:
    Oct 26, 2014
    Posts:
    301
    Yeah I think it is.

    Tried this out in a clean Unity project in 2018.3
    Code (CSharp):
    1. Debug.Log(AppDomain.CurrentDomain.GetAssemblies().SelectMany(x => x.GetTypes()).Count());
    Which game me type count 18029, So you probably have atleast that :D Unity probably excludes some assemblies when scanning.
     
  12. iamarugin

    iamarugin

    Joined:
    Dec 17, 2014
    Posts:
    883
    Same problem here in the release version of Unity and hdrp 4.6 >_<
     
  13. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,982
    This problem is still persisting in 2018.3.0f2
     
  14. pointcache

    pointcache

    Joined:
    Sep 22, 2012
    Posts:
    579
    Ahaha, its damn mouse polling rate.
    Ive noticed that this barrage of calls happened even in editor plugins that should be perfect like bolt,
    ran editor profiler and saw like 10k calls, and scratched my head as to what could be the reason.
    Then it ticked - the mouse and gui input is coming from the system, thus the poll rate defines the amount of unity events raised.
    upload_2018-12-27_5-19-3.png
    I had it at 1000
    Now check this out
    1000
    upload_2018-12-27_5-19-42.png
    125
    upload_2018-12-27_5-20-25.png

    Its still a S***ton, but its 10 times less editor lag.
    My editor lagged for years. I had no idea how it got worse with years.
    But it wast the editor that got worse its the mouses that got better.
    This is the most hilarious issue I've had.
    I guess its the Christmas spirit touching my forehead.
     
    Jick87 likes this.
  15. io-games

    io-games

    Joined:
    Jun 2, 2016
    Posts:
    104
    The issue is still here, Unity 2019.1.10f1
    Please fix, I can not work anymore