Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    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

Unity project takes a very long time to load

Discussion in 'Editor & General Support' started by pgbrandao, Feb 1, 2010.

  1. pgbrandao

    pgbrandao

    Joined:
    Jul 28, 2009
    Posts:
    15
    Hi everyone!

    I guess the topic subject says almost everything: on one specific project, Unity takes ages to load (around 10 minutes, from the moment I fire up Unity to the moment I can actually work on it). Now, this is a new problem, which has been getting worse over the course of the last few days, and apparently is specific to 1 project.

    Also, my computer is average: it's a 2.66 GHz iMac with 2 GB RAM (I suppose it's not underpowered for Unity). I'm running Snow Leopard, but I don't suspect any of these are the culprit, since this is a relatively new problem.

    The project weighs in at around 850 MB, and the final build takes 230 MB. Also, we're using the Asset Server. I guess the more assets, the slower Unity will be, but it's currently unbearable, and loading Unity is becoming more and more frustrating.

    If any specific assets are causing the problem, how can I track this down? If it's project-wise, how do I solve this? I appreciate any help...

    Thanks in advance.
    Pedro.
     
    EZIOKITTU likes this.
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    Unity shouldn't take that long to load.

    I would actually suspect that you are running low on memory with your 2GB RAM + Snow Leopard + Likely browser, mail, etc in the background so you force osx to push stuff into paging and back all the time.

    the only time where you can expect a quite long load is the first time when you convert a 2.5 project to 2.6
     
    EZIOKITTU likes this.
  3. magwo

    magwo

    Joined:
    May 20, 2009
    Posts:
    402
    One way to solve it could be to externalise lots of resources to asset bundles, which are built in a separate project. However that would require a significant re-architecture of your project if you are not currently using them.
     
  4. pgbrandao

    pgbrandao

    Joined:
    Jul 28, 2009
    Posts:
    15
    At first I thought other programs could be taking up too much memory, but even after a cold reboot the problem persists... :?

    As a matter of fact, things as simple as loading a relatively simple scene are excruciatingly slow. Right now I tried to compile a build, and couldn't. After a couple of minutes of mad hard disk activity, I get the following error:

    I really have no clue what's going on, I'd appreciate if the Unity guys could have a shot at figuring out the problem. :)
     
  5. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
  6. pgbrandao

    pgbrandao

    Joined:
    Jul 28, 2009
    Posts:
    15
    Thanks andeee.

    In the end we figured out what was causing the slowdown and crashing the build process: the use of the Resources folder. Once we figured this out, the project went back to normal.
     
  7. idurvesh

    idurvesh

    Joined:
    Jun 9, 2014
    Posts:
    495
    Same here, what you exactly did ?
     
  8. iyenal222

    iyenal222

    Joined:
    Dec 7, 2014
    Posts:
    9
    Same problem. But with Celeron Dual 1,6 with Win7.
    After upgrade to U5.
     
  9. Assassin002

    Assassin002

    Joined:
    Aug 14, 2017
    Posts:
    2
    Hello there well my unity is also taking too much time to load up and it is really very boring so the problem is that when i try to make a new project it shows me a screen of the menu like the assets set and 3d and 2d options and I create a project from there and then the unity just disappear and then i open task manager it shows me that my disk is using around at 65 % and my specs are
    i3 1st Gen but 3.08Ghz
    4 Gigabytes of ram
    Windows 10 pro 64 bit
    Intel integrated hd Graphics


    Please help me
     
  10. Assassin002

    Assassin002

    Joined:
    Aug 14, 2017
    Posts:
    2

    I think that you should close other background processes and upgrade your ram I think please tell me that it works or not.
     
  11. xinsirhc

    xinsirhc

    Joined:
    Mar 9, 2018
    Posts:
    1
    Mine is sooo slooooowww on importing assets, packages, etc. Look at this. Any ideas? I'm not good at the tech stuff. I just know it's sloooowwww.
     

    Attached Files:

  12. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    924
    I have the same problem, it's getting longer and longer:

    - I have completely deleted my Resources folder from my project and the result is the exact same.
    - The first time I load my project at my Windows startup is the worst (something like ~3 minutes to boot up).
    - This does not occur on small projects.

    What can I do to try and figure out what causes this very long first time on my game project?
     
  13. Cover-Club-Media

    Cover-Club-Media

    Joined:
    Apr 30, 2015
    Posts:
    93
    Same issue here, really long boot time for the editor with some projects. Very frustrating.
     
  14. marcrem

    marcrem

    Joined:
    Oct 13, 2016
    Posts:
    235
    Same here. And saving my scene takes more that 10 minutes.
     
  15. mkgame

    mkgame

    Joined:
    Feb 24, 2014
    Posts:
    592
    If something takes too long in Unity, then mostly the plugins/assets are the source of trouble. In my case I have a 140 Gig project, it takes 30-40 sec. Compiling about 10 sec and play mode about 10 sec. I Optimized the compile and play mode start time, but not the Unity start time. (xeon E3 1231, 24 Gig Ram, SSD, NV 970)

    I would recommend you to clone your project and try to remove assets from your project, until you find the source or sources of this issue. That was my strategy to find the long play mode start time (was about 60s). With 10 min start time it will take a bit.

    For saving the scene you can use the deep profiler for the editor.

    Edit: Don't forget to ignore the unity.exe and the project folder for your virus scanner (In my case in Windows Defender).
     
    Last edited: Oct 14, 2018
    RuanJacobz likes this.
  16. RuanJacobz

    RuanJacobz

    Joined:
    Jan 24, 2014
    Posts:
    59
    I was having extremely slow project startup times (with a relatively small project!), but your advice about excluding unity and the project from the virus scanner brought it down to 20 or seconds. Thank you so much.
     
  17. CreeperPower618

    CreeperPower618

    Joined:
    Nov 28, 2019
    Posts:
    2
    Make sure you have enough PC memory
     
    ArachnidAnimal likes this.
  18. Kevstar66

    Kevstar66

    Joined:
    Oct 15, 2019
    Posts:
    1
    Did you find out what the problem was? How did you fix it? THanks.
     
  19. idurvesh

    idurvesh

    Joined:
    Jun 9, 2014
    Posts:
    495
    It's random I guess, some project still takes time to load while some projects get load quickly.
     
  20. ABerlemont

    ABerlemont

    Joined:
    Sep 27, 2012
    Posts:
    44
    Any pointers on how one could debug this behavior ? I don't think there are logs on what's going on during loading...?

    One of my projects takes 5+ min to open in Unity
    It also takes 5 more min to go from editor to runtime (through play button). But only 1 time. All following attempts boots in a normal way.

    Thanks for the help !
     
  21. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,711
    Look at the task manager (if on Windows). Is the hard disk cranking away? It's loading the data from disk into memory. There's not much you can do about it on a HDD. If closing Unity and re-opening it it shouldn't require reading from HDD so much since the data still exists in the computer memory.
    Personally that's why I bought a SSD card, to greatly speed up opening up programs like Unity.
    Also as was pointed out above, to prevent your virus scanner from scanning the project folder. I also disabled disk indexing for the project, not sure if that helps or not though.
     
    Last edited: Feb 18, 2020
  22. ABerlemont

    ABerlemont

    Joined:
    Sep 27, 2012
    Posts:
    44
    @ArachnidAnimal
    Task Manager was a good idea :
    Basically I see HDD transfer (not full speed though) and increasing RAM. It's just that it seems it could way faster than it does. My project is on a basic HDD (not ssd) it varies from 0,2mb/sec to 2mb/s (it can go way faster than that in theory).
    Maybe because everything that needs to be loaded in RAM is fragmented on the drive ?

    Thanks for the insight :thumbs_up:

    EDIT:

    I used this tool to check on speed : http://www.buildcomputers.net/hard-drive-benchmark.html
    Random reading (scattered files) is REALLY SLOW on my hdd.
    My HDD seems to be a 5300 rpm ( https://www.online-tech-tips.com/computer-tips/check-hard-drive-rpm/ ).
     
    Last edited: Jun 24, 2020
  23. ryanchen26

    ryanchen26

    Joined:
    Jul 26, 2014
    Posts:
    6
    My projects also take a huge amount of time to load. In TaskManager Unity Editor just sits there with 0% CPU, 16.8MB Memory, 0.1 Mb/s Disk. Using 2019.4.3f1. Crazy slow. Before this 2019.2.6 (I think) was almost immediate by comparison. Still waiting...my CPU utilization is 4%, memory is 14% of the total 64GB ram installed, Disks are between 2 and 0%.

    Update: I read in a different thread that by skipping the Hub, and just going to the scene file (.unity) and using OpenWith and selecting the Unity.exe, then in the prompt selecting Open Project, set the folder for the project...then it opened immediately.
     
    Last edited: Aug 10, 2020
    P_Jong likes this.
  24. BUSEEBEE2010

    BUSEEBEE2010

    Joined:
    Sep 18, 2020
    Posts:
    2
    For me, it can take up to 20 mins or be speedy like 7 Mins, I dunno, 2D projects take only 3 mins......
     
  25. BUSEEBEE2010

    BUSEEBEE2010

    Joined:
    Sep 18, 2020
    Posts:
    2
    I don't really know what happens..
     
  26. DigitalIPete2

    DigitalIPete2

    Joined:
    Aug 28, 2013
    Posts:
    33
    I seem to be suffering the same lengthy opening of large Unity projects too (of 20GB Plus) but the culprit looks like Collaborate. It's so slow checking everything. Im on a 350MBS cable internet connection so its not me.. or my kit, 32GB memory PC with a 6 GB 2070Ti and an i7 7800 CPU @3.50Ghz.

    Any assistance in improving this "wait 50 minutes and I'll be ready to work", and I'll be very grateful, thanks.
     
  27. kanoder

    kanoder

    Joined:
    May 24, 2020
    Posts:
    3
    This is definitely an Unity issue, my project just took over 10mins to load.
    I'm a newbie to Unity and just started playing around following tutorials and such, my project right takes 164 Mb in the disk, including assets and everything. I thought about windows defender but to me this got much worse after updating to Unity 2020.1.10f, before I was using 2019.3 and it was rather fine.
     
  28. xXGreen45Xx

    xXGreen45Xx

    Joined:
    Nov 20, 2020
    Posts:
    1
    When I try to create my projects, it stays at 49.7% for about 5 or 6 mins then stays at 50% for another 2 mins
     
  29. Steviebops

    Steviebops

    Joined:
    Apr 9, 2013
    Posts:
    108
    I have collaborate disabled and Unity is still taking increasingly longer times to start up.
     
  30. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    10,837
    Just a general comment outside of the specific Collaborate issue. When you're opening projects, the amount of time it takes is highly dependent on the size of the project, additional work required (like if the Library folder was blown away and has to be rebuilt), and the hardware specs of your computer.

    So unfortunately it is not all that helpful to complain that Unity takes a long time to start up without anymore information. Because the problem might be because you have your project on a regular HDD instead of SSD (Unity projects typically have thousands and thousands of little files which are hell to read/write on an HDD), you might not have enough RAM causing your OS to constantly need to thrash the swap file, or your CPU might just really not be up to the task. Opening a project which takes under a minute on a newer fast computer, can easily take 20+ minutes to do the same work on poor hardware.
     
  31. Steviebops

    Steviebops

    Joined:
    Apr 9, 2013
    Posts:
    108
    New Pc SSD.
    No library being rebuilt.

    This issue is happening to a lot of people, it clearly is a Unity issue, not a hardware one.
     
  32. berk_can

    berk_can

    Joined:
    Feb 8, 2016
    Posts:
    12
    I am getting very slow load time, it increases as I start to use new Unity versions, eg: 2020.2.1 takes more time to load than 2019.3.13f
     
  33. ASIM-SENYUVA

    ASIM-SENYUVA

    Joined:
    Apr 29, 2013
    Posts:
    72
    I am still waiting. Unity Version: 2020.1.1f1.

    upload_2021-1-10_14-12-23.png
     
    Steviebops and Jasr_88 like this.
  34. Steviebops

    Steviebops

    Joined:
    Apr 9, 2013
    Posts:
    108
    Oh that is rough :(
     
  35. Jasr_88

    Jasr_88

    Joined:
    Mar 21, 2016
    Posts:
    9
    I just fond out that installing the Unity Accelerator works, just follow the instructions for
    Installing an Accelerator via the Installer, and enable Cache server on unity.

    Hope it helps those that are desperate about this issue like me!
     
  36. luakGames

    luakGames

    Joined:
    Jul 13, 2020
    Posts:
    4
    Make sure that you dont have a vpn on while loading it. Thats what made mine take a long time.
     
    Joe-Censored likes this.
  37. Steviebops

    Steviebops

    Joined:
    Apr 9, 2013
    Posts:
    108
    Would the Accelerator work on a solo project, or is it only going to improve things across a team?
     
  38. newlife

    newlife

    Joined:
    Jan 20, 2010
    Posts:
    906
    It seems something happened in a unity version after 2019.4.17. The very same project, it opens in few seconds on unity 2019.4.17, it takes ages on unity 2019.4.22.
     
    mxoconnell and piorotorus like this.
  39. mxoconnell

    mxoconnell

    Joined:
    Jun 8, 2014
    Posts:
    8
    Yeah we are experiencing the same, seems like a recent change
     
  40. newlife

    newlife

    Joined:
    Jan 20, 2010
    Posts:
    906
    With some further research, it seems that the culprit is the stupid windows 10 antimalware that scans the unity project every time you open it. The only solution is to add unity and your project to the antimalware exceptions.
     
    Joe-Censored likes this.
unityunity