Search Unity

Project size and effect on editor start times

Discussion in 'Editor & General Support' started by tawdry, Jan 11, 2019.

  1. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Hi
    Just wondering why the larger your project the longer it takes to enter playtime. For instance if you have say 50 gigs in your project folder unity will take around 15 seconds from pressing the play button to actually starting (blank snene) whereas only having a couple gigs the editor will begin almost instant?. Does Unity have to search all the files each time you press play?
    Is there any way, other than keeping the folder size as small as possible, to help the editor begin faster no matter the size of the project?
    Thx
     
  2. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,195
    Profiling the editor is one way to shed some light. In doing so, a pretty decent chunk of the time to enter play mode is taken by by "ReloadAssembly", which I assume takes longer and longer the more code you have in your project. In my project, a bunch of time is also taken up by HDRP rendering cleaning things up, so perhaps the more materials in the project the more work it needs to do.

    Anyway, you might take a look at the profiler results and make sure there isn't any 3rd party code doing anything time consuming. Otherwise, I don't know how to speed up the process overall.
     
  3. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Hey dg
    So in your opinion then its not the mesh textures etc that cause the slow down but the code in the project even when that code is not been used in the scene been played?
     
  4. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,609
    Here are a few of my answers regarding EnterPlayMode issues. I would fire up the profiler and check what's slow. It's explained in the first link.

    How to measure what's slow in EnterPlayMode
    https://forum.unity.com/threads/really-slow-to-enter-play-mode.468963/#post-3056065

    (Runtime)InitializeOnLoad can cause EnterPlayMode to slow-down
    https://forum.unity.com/threads/enterplaymode-slowness.526819/#post-3636661

    Loading scenes in parallel can cause EnterPlayMode to slow-down
    https://forum.unity.com/threads/how-to-reduce-enter-play-mode-time.484279/#post-3155183

    How EnterPlayMode is affected by adding more assets
    https://forum.unity.com/threads/how-to-reduce-enter-play-mode-time.484279/#post-3155777
     
    dgoyette likes this.
  5. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Cool thx for all those links I will get on them right away
    kudos