OK, so me and a friend have been working on a project to design a city, this is more his project than mine, I just optimize, touch up and bake the AO into stuff.
Anyway it has been a while since I have not been around, and he sent me the project (200MB) 4 days ago. So i start up Unity and open the project, and it takes fooooorever to import the assets, by forever I mean exactly 3 days and 7 hours. So i get up this morning and it just finished as I was getting ready. Now I just got back, readily click unity to do something. and it is now “importing assets” again this time with Unity open and the project open in the backdrop.
Is there a patch or something I can speed this up with or do I just have to be patient?
A while back, when still using U2.6.1, this started happening to me. One day everything was fine, the next day the same issue you have. I actually thought Unity had frozen as after 6 hours to open a project I was killing it (didn’t think to leave it 3 days).
Anyway, I never did find a solution. Even Re-installing Unity didn’t fix it. In the end I had to reinstall my Windows Vista (I am not saying do this though!!).
How about other projects? When I was having the above issue every project took forever to import (even creating a new project).
the platformer tutorial projects and the island demo are around 200mb, and they both take like 10 seconds to load… maybe there’s something wrong with your computer :-0
Uninstall Unity and reboot your computer and use it like normal for a day or two. Reinstall and try again. My vista had problems that Unity crashed on load and doing this fixed it. It’s probably a Vista Registry or IO problem associated with the install of Unity. If I reinstalled Unity the same day as uninstalling it it kept the same problem of crashing on load. Hope that helps.
It might help to uninstall Unity using a tool such as Revo Uninstaller. It tries to do a thorough cleanup after a program has been uninstalled, such as deleting reg keys, appdata dirs, etc.
Revo isn’t free, but you can just use the free trial which does everything.
Unless your running OSX. In that case, I got nuttin.
–edit
Oh also, I’ve found that Unity imports very very slowly over a networked drive. This happened to me at a friends house, but it was no where near as bad as what you’ve described.
Don’t do this, EVER!! I was once working on my project over my shared server with my Mac and PC. PC was for art and Mac was for actual unity development. The server was on the PC side with the project folder and when importing into Unity on the Mac it took longer than it was supposed to and constantly imports stuff. Now I just keep the Unity project folder on the Mac and just drag the files back and forth when I need and it imports everything faster.
My project is 4gb and I downloaded it from the asset server and initialized it in under 3.5 hours, so, I’m not sure what to tell you other than to get a faster computer?
I heard the word Vista here a couple of times. Call me a skeptic, but I’ve had so many of these kinds of problems using Vista that I’m suspecting it is to blame here as well.
This is probably unrelated but I started experiencing strange loading times a week ago with unity 3 beta after I added one single file to the project. The file was a large .png file with a really long and complex filename. The problem seemed to go away after I deleted that single file. Just to add my two cents to general paranoia.
Also nothing definite but I also had a bit of a wait when importing a small project (well, upgrading it, actually). Thing with my case was I dropped in a few extra models from a collection of mine and didn’t notice it contained MAX files. After a long import session it complained about not supporting MAX files.
Previously I had encountered long import times and it was as a result of a PNG or TGA with some or other setting that Unity could not read and thus failed to import. So my thoughts are that whenever Unity finds something that doesn’t play well with it, it tends to struggle past there…
I too have had a few cases where I thought Unity had stalled on me as it imported up to 80% (ish) and then didn’t move. Then, as I tabbed between apps I would sometimes get the import box, sometimes not (depending on if i tab to it or click on the dock). Fortunately, these days I see a little progress indicator in my dock… That is a REAAALLLLY welcome change that is!
If you really want to streamline data import try not to use files that Unity has to convert. I noticed that importing Photoshop .psd files take 4 to 5 times longer to important than if I save my file as a bitmap. Add that up per texture in your game project and its easy to see how the import time could get out of hand. Sure its convenient to use .psd’s but perhaps it’s better to just save them separate and just give Unity bitmaps or other basic files types to import.
I can’t see how this is good advice. Manually managing that bitmap and finding the psd when you need to edit will cost you far more dev time than letting Unity do it for you. Unity only reimports when the asset changes. So provided your asset management process doesn’t mess up time stamps, you are far better off using the source art asset as the asset in you project.
Copying whole directories of files around is not a good asset management process, if anywhere along the line your OS uses the copy time as the timestamp. Subversion, git, etc. Do not wreck timestamps.
To the original poster’s problem: I’d suggest importing the assets inncrementally (eg. A directory full at a time), until you find the assets that are actually causing the problem. No way 3 days is normal or reasonable (I’m shocked you were so patient!)
Previous to the Version 3 betas I had some .max files in my Unity project,
but was also having import issues with them so I no longer keep any .max files in my Unity project folders.
If you are porting projects frequently without a SVN server, or switching between to computers like I do, I waste much time waiting for assets to import. What I will probably end up dong is have a folder with all my .psd’s and then save as to the Unity assets so then I can have the best of both worlds at the loss of disk space. Either way importing assets in that case would be faster. Also, I can’t say I rely heavily on the double click the texture assets to edit. I normally edit it a bunch till I’m happy with it and then its complete and I won’t touch it again. So for me at least my advice works :lol:
There are many more basic alternatives that also allow timestamps to be preserved. Zip files, for example, successfully transport timestamps during copying, and zip also has a “don’t re-add unchanged files” option. So while I haven’t tested the precise workflow, it may suffice to do exactly what you’re doing now, but dragging the files to a zip file on a flash drive rather than raw on the drive - it could even be faster to “copy” if unchanged files are re-added.
Drop Box is another option (would be a slow initialization though…).
Rsync is another option.
Just plain keeping the files on a NAS will work (provided only one person opens the project at a time).
Manually copying files should be a very last resort. Like if you’re stuck on a desert island or something
Absolutely. I’m just saying it’s not a workflow I would recommend unless all else fails (neither the use of bitmaps nor the copying of whole Asset directories manually), mainly because of how nice Unity’s asset importing is (though I’d love two things: PSD layer selection, so I can keep the multiple maps for a single material together; and better support for user-defined importing)
lol :shock: I did not put two and two together to realize time stamps drove the re-import when transferring files. I will try the zip file as my internet is far to slow to use any web based solution. Thanks, for the info!