Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Our response to Improbable’s blog post (and why you can keep working on your SpatialOS game). Read more here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Project size and effect on editor start times

Discussion in 'Editor & General Support' started by tawdry, Jan 11, 2019 at 8:24 PM.

  1. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,154
    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:
    1,031
    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,154
    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

    Joined:
    Jun 12, 2013
    Posts:
    3,013
    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,154
    Cool thx for all those links I will get on them right away
    kudos