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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Crazy Initialization times when Creating 3D Unity Project on External Hard Drive

Discussion in 'Editor & General Support' started by ropeadopepenguin, Feb 8, 2023.

  1. ropeadopepenguin

    ropeadopepenguin

    Joined:
    Aug 2, 2022
    Posts:
    1
    Hey everyone,

    I would just like to let you know about an issue I had been having. In an effort to save space on my local disk, I had been loading all new projects onto an external HDD. It was taking 15+ mins for a blank 3D project to initialize. I decided to just start initializing projects on the local drive and the time taken was reduced to <2mins. If you were experiencing similar issues, I hope this helps.

    It also reduced the time to reload script assemblies after changes were made to scripts.
     
  2. chemicalcrux

    chemicalcrux

    Joined:
    Mar 16, 2017
    Posts:
    717
    I can absolutely believe that -- the Library folder in one of my modestly-sized projects contains around 50,000 files (with 105k in the entire project).

    Reading and writing lots and lots of files on spinning rust (especially when it's connected via USB) can get veeeeery slow.
     
    ropeadopepenguin and PraetorBlue like this.
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    37,210
    This can also speed things up a lot:

    Extra unwanted packages in new projects (collab, testing, rider and other junk):

    https://forum.unity.com/threads/temp-unityengine-testrunner-dll-error.1133938/#post-7287748

    About the fastest way I have found to make a project and avoid all this noise is to create the project, then as soon as you see the files appear, FORCE-STOP (hard-kill) Unity (with the Activity Manager or Task Manager), then go hand-edit the
    Packages/manifest.json
    file as outlined in the above post, then reopen Unity.

    Sometimes the package system gets borked from all this unnecessary churn and requires the package cache to be cleared:

    https://stackoverflow.com/questions/53145919/unity3d-package-cache-errors/69779122
     
    ropeadopepenguin likes this.