Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to speed up build startup time

Discussion in 'Editor & General Support' started by joshcamas, Apr 27, 2019.

  1. joshcamas

    joshcamas

    Joined:
    Jun 16, 2017
    Posts:
    1,268
    Hello friends

    For some reason, my build takes around 10-15 seconds to start up. At first this resulted in the game not responding, but I fixed that issue by having the initial scene just be a empty scene that asynchronously loads the menu screen.

    However, this didn't solve the problem with the wait time: The main menu only has a single UI, and still takes a huge amount of time to load.

    Any thoughts?
     
  2. Xonatron

    Xonatron

    Joined:
    Jan 14, 2013
    Posts:
    31
    I am now getting over 60 seconds start up time after clicking the .exe, for the simplest of games (one object; one script to rotate it). Unity v2020.1.4. Replicated 30 times by 30 different builds by 30 different people. I am running a fairly quick/modern Win10 gaming machine (16GB RAM).
     
  3. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,723
  4. joshcamas

    joshcamas

    Joined:
    Jun 16, 2017
    Posts:
    1,268
    In my case, it was due to the fact that the main menu did indeed reference a scriptableobject that essentially referenced the rest of my world, including the one thing that was massively slowingdown loading times, which was terrain detail textures. (Since I had 500 terrains referenced, and each detail was 1000x1000, this created 500 massive atlasses to be loaded at once).

    In other words, using the memory profiler was the solution in this case. If a scene you think should load quickly isn't, try checking the memory.

    However for Xonatron, I do not know what the issue is, since this is clearly not a memory issue. Did you try turning off your virus scanner?