Search Unity

Unity — torpid performance

Discussion in 'General Discussion' started by podperson, Apr 14, 2013.

  1. podperson

    podperson

    Joined:
    Jun 6, 2006
    Posts:
    1,371
    None of my Unity projects are particularly heavyweight (most are mobile). I've been away from Unity development for almost a year and recently upgraded to Unity 4, and I'm finding that Unity takes forever just to launch and is unresponsive for a long time. What the heck?

    Unity 3.5.x used to launch with these same projects almost instantaneously. I've tried 4.0.1f2 and 4.1.2 and they're both — well torpid would be an insult to torpid things.

    E.g. clicking on the console tab causes a beach ball and about 20s of delay before anything happens.

    I'm running a Macbook Pro 2010. Activity Monitor never shows more than about 30% CPU load. Am I doing something terribly wrong?
     
  2. UnknownProfile

    UnknownProfile

    Joined:
    Jan 17, 2009
    Posts:
    2,311
    I've come to notice this a lot recently as well. Unity 4 is very noticeably slower than Unity 3.
     
  3. ChaosWWW

    ChaosWWW

    Joined:
    Nov 25, 2009
    Posts:
    470
    Yeah, I've been noticing this a bit as well on a big multiple gigabyte project, especially on windows in particular. For some reason windows seems to have a lot more massive delays, but both still get as bad as having a second long delay to select things at times. Hopefully this will be addressed.
     
  4. dxcam1

    dxcam1

    Joined:
    Feb 6, 2012
    Posts:
    477
    Not having this, but I've been doing very low-weight projects recently.
     
  5. landon912

    landon912

    Joined:
    Nov 8, 2011
    Posts:
    1,579
    Unity has become much slower for me also, when recording it starts to lag, which never happened with 3.x. The asset store has become a useless piece of crap as I'm scared to open it anymore due to weird glitches and freezes. Multiple bug reports sent and no fixes as of yet.
     
  6. podperson

    podperson

    Joined:
    Jun 6, 2006
    Posts:
    1,371
    While your comments are depressing, my problems are far beyond this. I left the project to finish "importing small files" for several hours and when I get back it's still beach ball city. The application does respond to events, but it's glacial.
     
  7. khanstruct

    khanstruct

    Joined:
    Feb 11, 2011
    Posts:
    2,869
    Just curious if everyone having this issue is a Mac user. I use Windows and don't have any performance issues at all.
     
  8. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,659
    I've had some issues on Windows as well but they turned out to be due to particular weirdnesses about my system (e.g. a Hamachi network interface that was set to join a blocked network). I used the VS profiler to diagnose them. Maybe there's some similar tool that can be used to see what's going on on Mac, like Instruments?
     
  9. chrisall76

    chrisall76

    Joined:
    May 19, 2012
    Posts:
    667
    I use windows 8, Unity 4 acts the same as Unity 3 for me.
     
  10. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    It may be an issue with 10.8.3. I'm not using that, and Unity 4 is at least as fast as Unity 3 here.

    --Eric
     
  11. ZJP

    ZJP

    Joined:
    Jan 22, 2010
    Posts:
    2,649
    Win 7 32b. No difference between 3 and 4.
     
  12. podperson

    podperson

    Joined:
    Jun 6, 2006
    Posts:
    1,371
    I'm using 10.8.3 (and yes, I'm a Mac user). The behavior of Unity 4.1.2 is completely unacceptable. I just tried creating a brand new project using only a few Unity-supplied packages and the problem remains. I'm going to try installing 4.1.2 on my Mac Pro and see if the problem is peculiar to my MBP (I can't imagine Unity shipping a product this broken…)
     
  13. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,659
    Well, indeed - the odds are good that it works fine for them (and they use Macs a lot internally). So trying it on another of your machines is a good idea, especially if it doesn't have 10.8.3.
     
  14. UnknownProfile

    UnknownProfile

    Joined:
    Jan 17, 2009
    Posts:
    2,311
    I'm on 10.7.5 and Unity 4.0.1 and Unity is much slower that 3.5.X.
     
  15. podperson

    podperson

    Joined:
    Jun 6, 2006
    Posts:
    1,371
    So 4.1.2 runs just fine on my Mac Pro 2012 (24GB of RAM). I still have no clue what's causing problems on my MBP so I bugged it.
     
  16. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    9,052
    MBP 10.8.2... The speed is about the same for me, it does launch faster than before though. But the performance degrades after about an hour of use. Starts to slow, lose the ability to undo and the inspector starts to get wonky. (can't enter values, doesn't show the correct item, stuff like that). I have just got in the habit of quitting and relaunching about every hour. Annoying, but not too horrible.
     
  17. podperson

    podperson

    Joined:
    Jun 6, 2006
    Posts:
    1,371
    I'm not griping about Unity leaking memory or being a little bit sluggish compared to some earlier version, I'm talking about 4.0.2 and 4.1.2 being so slow as to be utterly unusable on a maxxed out 2010 Macbook Pro that isn't running anything else, even when editing an empty project.
     
  18. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,822
    I'm still on 3.5.x as I have no reason at the moment to upgrade.
    Yet after installing Win8 64-bit the startup time of Unity has been noticably slower. Sometimes it takes a minute before the 'choose project' screen appears.
     
  19. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    9,052
    Weird. You've tried all the usual stuff right? Permissions, disk repair, etc? I just upgraded my MBP and prior to that I was a on 2009 model and 4.x ran fine. Especially if you are having problems with an empty project. Sounds like something deeper like a an errant process or maybe something. Have you looked at the system console when it open to see if there are errors or warning firing off?
     
  20. podperson

    podperson

    Joined:
    Jun 6, 2006
    Posts:
    1,371
    I have looked at the console. It doesn't seem like anything terrible is wrong. (Unity isn't crashing — it's just running very, very slowly). I don't see how disk permissions would do this, but it's a thought so I kicked off a verify after reading your post. I'm may try some radical stuff (e.g. I may reboot the computer ZOMG!!!)
     
  21. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    9,052
    I had some problems with permissions in the past with another app (either Flash or Flex), where it didn't have permissions to write to some log in the system, but it wasn't enough to actually kill the app and didn't throw and error, but it just kept trying over and over (every few seconds), and was bogging things down. I had even done a full reinstall. By chance I found thousands of these in the console. I ran fix permissions, and the problem was solved.

    It probably won't solve your problem, but I always start with quickest stuff first now (permissions, disk repair and zapping the PRAM), just to get that stuff out of the way. Sometimes, it works and I don't need do anything too radical.
     
  22. podperson

    podperson

    Joined:
    Jun 6, 2006
    Posts:
    1,371
    Upon closer inspection, I am seeing repeated messages along this line in console:

    ...Windowserver: reenable_update_for_connection: UI updates were forcibly reenabled by application "Unity" after 1.03 seconds (server re-enabled them after 1.00 seconds).

    I've tried everything. Everything else is running fine, Unity is garbage.
     
  23. podperson

    podperson

    Joined:
    Jun 6, 2006
    Posts:
    1,371
  24. chingwa

    chingwa

    Joined:
    Dec 4, 2009
    Posts:
    3,790
    I dunno, I've had the exact opposite problem from you guys. 3.5 always took forever to open...sometimes I could speed it along by opening a browser window after I had double-clicked on the unity icon. Unity4 and 4.1 open near instantaneous for me (windows vista 64bit).
     
  25. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    No difference here either on OSX 10.7.5 or if then U4 loads faster than U3
     
  26. propapandagames

    propapandagames

    Joined:
    Jan 1, 2013
    Posts:
    70
    No complaints here with Unity 4 on Mac OS X 10.8.3. Didn't notice any significant difference in GUI responsiveness between 3.5 and 4.
     
  27. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,208
  28. podperson

    podperson

    Joined:
    Jun 6, 2006
    Posts:
    1,371
    The problem is related to the profiler with certain nVidia graphics cards and 10.8.3. Once I turned off the profiler (which is quite painful to do in slow motion) Unity returns to being wonderfully responsive. Very annoying though — I tend to "live" in the profiler :)