Search Unity

Unity 4.5 Hierarchy window causes game view lag issues

Discussion in 'Editor & General Support' started by aresgameshk, May 30, 2014.

  1. aresgameshk

    aresgameshk

    Joined:
    May 19, 2014
    Posts:
    32
    I have just upgraded from 4.3 to 4.5, everything was perfectly fine back in 4.3.

    Now in 4.5, given that I have very large scenes (many thousands of gameobjects), whenever I press play, the game freezes up whenever I spawn particle systems.

    I have found out that this has to do with the hierarchy window (most likely due to the new GO sorting feature).

    If I close the hierarchy window, or enter some search criteria which ends up with very few (or no) results, the lag disappears.

    I assume this may get progressively worst if you have multiple Hierarchy windows.
     
  2. aresgameshk

    aresgameshk

    Joined:
    May 19, 2014
    Posts:
    32
    I have also confirmed this DOES get worst as you have more Hierarchy windows open.
    This issue also affects how responsive the Inspector window is, once you have thousands of gameobjects and several Hierarchy windows open, it will take up to 3 seconds before anything pops up on the inspector after selecting an asset in the Project window.

    Unity Devs you can easily reproduce this by creating many empty game objects and opening several Hierarchy windows.
    (Edit: dont use nested empty GOs, just keep them in the root)
     
    Last edited: May 30, 2014
  3. aresgameshk

    aresgameshk

    Joined:
    May 19, 2014
    Posts:
    32
    Just did some more testing and with roughly 15,000 empty game objects and 3 Hierarchy windows, clicking on an asset made me wait 1 minute and 40 seconds before anything responded.

    I tried the exact same scene and procedure in Unity 4.3 and the response was instant.
     
  4. phil-Unity

    phil-Unity

    Unity UI Lead Developer

    Joined:
    Nov 23, 2012
    Posts:
    1,226

    I've fixed the response time for it (not sure when it will get into a RC). Very easy fix just wish someone caught it before it was let loose :(.
     
    IsaiahKelly likes this.
  5. IsaiahKelly

    IsaiahKelly

    Joined:
    Nov 11, 2012
    Posts:
    418
    Thanks for all your work! I guess this would be an excellent opportunity to make a new patch release. ;)

    I did some testing too and it seemed to be related the search/highlighting feature. I guess none of the beta testers tried making any insanely large projects. :D
     
  6. phil-Unity

    phil-Unity

    Unity UI Lead Developer

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    Yea i'm going to see what i can do to get it in asap. It also pointed out another very majour issue that caused a noticeable lag while using the search field.
     
  7. aresgameshk

    aresgameshk

    Joined:
    May 19, 2014
    Posts:
    32
    This fix is not included in 4.5.1 right?
     
  8. phil-Unity

    phil-Unity

    Unity UI Lead Developer

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    No it didnt make the cut off for 4.5.1 :(