Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to build faster?

Discussion in 'Windows' started by Alde-Baran, Aug 12, 2023.

  1. Alde-Baran

    Alde-Baran

    Joined:
    Nov 15, 2019
    Posts:
    39
    I'm waiting my project to build, and it's has been more than 2 hours.

    upload_2023-8-12_17-5-2.png
    Here is my spec:
    GTX 1050 Ti
    i5 intel 8400
    8 Gb of ram
    SSD 500 Gb

    Project, Unity and the build target locations all in SSD.

    The last time i build my project it didn't even take an hour. I just added a image for Windows icon, and 2 new level (before than there was only 3 level), new levels has the same size as old ones.
    I don't know why it take too long to build. Only differance i see is, Unity usualy goes the "Untitled" scene when building, this time it didn't.
    What can i do to build faster?

    Also no, there isn't any other program is active. Expect now i'm writing this post.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,628
    Did you by any chance add any shaders to "Always included shaders" list in the player setting? that would cause things like this to happen.
     
    Alde-Baran likes this.
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,847
    Do you have an updated unity version?
    Shader compilation has had some good improvements
     
  4. bugfinders

    bugfinders

    Joined:
    Jul 5, 2018
    Posts:
    1,383
    like you I ended up with what felt like a bajillion shader variants with no obvious reason and it actually made my build big as a result. I ended up getting a shader tool from the asset store to see what was going on and after poking about I wont say its fast as it can be 25 minues "linking build.js" as Im building for webgl but the rest now builds at a spead Im happy with it
     
  5. Alde-Baran

    Alde-Baran

    Joined:
    Nov 15, 2019
    Posts:
    39