Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

About build

Discussion in 'Editor & General Support' started by Barritico, Jun 7, 2019.

  1. Barritico

    Barritico

    Joined:
    Jun 9, 2017
    Posts:
    268
    I have not been programming with Unity for a long time. But I was struck by the "build" process

    In an important project, "build" takes about 25 minutes. If I make a minimum modification in the code (even if it's just a line) and I have to re-build the project ... another 25 minutes.

    I might do something wrong since I can not believe this process is like that. I understand that the most practical thing would be for the cache to identify the changes (at least in "shaders", which is what it takes the most) and if there are no modifications, ignore them.

    That's why I think I do not do something right and ask the forum for help.

    Thank you.
     
  2. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    15,954
  3. Barritico

    Barritico

    Joined:
    Jun 9, 2017
    Posts:
    268
  4. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    7,163
    Joe-Censored likes this.
  5. superpig

    superpig

    Quis aedificabit ipsos aedificatores? Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,319
    Asmdef files will help with compilation performance, but that's not usually the biggest part of the overall project build - usually it is more the content that takes the time.

    You can speed up content build by learning to use Asset Bundles, because when your content is in an Asset Bundle then it doesn't need to be rebuilt every time you build your project, it only needs to be rebuilt when you actually changed something in the bundle.

    The Addressables package provides a layer on top of Asset Bundles which should make using them quite easy.
     
    Barritico, Ryiah and Lurking-Ninja like this.
unityunity