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

144 hours and counting to import project

Discussion in 'Asset Importing & Exporting' started by madmonstor, Jan 29, 2016.

  1. madmonstor

    madmonstor

    Joined:
    Apr 29, 2015
    Posts:
    15
    I have a very large project (previously shipped title on PC, PS4, XBox One), which we are looking at bringing to mobile. So far its taken 144 hours to import the project from scratch and it's still not done. The problem seems to be that after processing 5-15 files, Unity hangs for several minutes doing some kind of cleanup after which it spews out a message. Here's a sample message from the log:

    Unloading 147 unused Assets to reduce memory usage. Loaded Objects now: 4615.

    This is the case regardless of file type eg dds, wav, fbx etc.
    Note that "Compress Assets on Import" is turned off.
    Typical physical memory usage is 3.5GB of 8GB total.
    There are 171,000 files in my Assets folder including meta files.
    Restarting Unity doesn't help.
    Unity 5.3.1f1 (64-bit), Windows 7, MacBook Pro (Bootcamp), 8GB Memory

    Does anyone have a known solution or workaround?
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
  3. madmonstor

    madmonstor

    Joined:
    Apr 29, 2015
    Posts:
    15
    Targeting PC at the moment. All textures were converted to dds before importing and additionally "Compress Assets on Import" is turned off, so texture conversion should not be the issue. Also happens while importing wav, fbx etc.
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Any errors in the log file? Are you running any scripts on the imported files?
    How many texture, meshes etc do you have? It's not unusual for very large projects to take a long time to import but 144 hrs is pushing it.
     
  5. madmonstor

    madmonstor

    Joined:
    Apr 29, 2015
    Posts:
    15
    No errors or scripts running. The problem is not the time it takes to import each asset. This occurs relatively quickly as observed in the progress bar. The problem is the large repeated stalls that happen after processing every few assets, while Unity does some kind of memory cleanup. When the stalls occur the following messages appear:

    System memory in use before: 243.1 MB.
    System memory in use after: 243.5 MB.
    Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 4606.
     
  6. madmonstor

    madmonstor

    Joined:
    Apr 29, 2015
    Posts:
    15
    So $4000 dollars later and a new Macbook Pro with 16Gig RAM, I was finally able to import the project in 24 hours. Seems like 8Gig RAM is not sufficient to import a larger project. Note to UNITY DEVS: Please have someone take a close look at memory management during the import process. There's something terribly wrong going on there.
     
    spryx likes this.