Search Issue Tracker

Fixed in Unity 4.3.4

Votes

241

Found in

4.2.2f1

Issue ID

571984

Regression

No

Maverick and Unity performance issues

IMGUI

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 1Crash, freeze, data loss, work stops

On some Mac's with OS X 10.9 Unity performance is very bad, including stuttering, editor freezes, editor lags and similar.

We found that there seems to be a leak in Maverick's OpenGL ARB VBO implementation.
Our text rendering creates and destroys a lot of VBO's so it is most likely that this happened after around 10 minutes of working with Unity and the inspector or other text heavy components in unity uploading a lot of geometry.

Terrains will be especially affected, but of course just loading a scene / unloading a scene will load / unload VBO's for all the meshes too.

This issue has been fixed with a workaround in 4.3.4. We are working with Apple to get a proper fix done, at which point we will be able to remove the workaround.

Comments (117)

  1. Cf2fa35b125b9b95044fe28e98863ca0?d=mm

    RyanZimmerman87

    Dec 11, 2013 01:30

    Yeah, this should absolutely be a priority 1 bug. Do they not have any macbook's to test this problem with?

    My work rate has dropped at least 50% while using my Late 2013 macbook pro. This is the brand new model, the CPU should be fast enough to keep monodevelop going!

    Why in the world am I getting 10+ second lag spikes when the game isn't even playing. It's ONLY Monodevelop c# coding and I'm constantly getting the little spinning colored circle for loading. This happens constantly even without building the project.

    It can occur repeatedly every few seconds with each freeze up lasting between 5-20 seconds! It makes using Unity on a Macbook almost impossible! Really glad I'm almost ready with the first iOS build so I can switch back to PC until this gets sorted out!

    I also get quite a bit more lag in editor mode compared to what I would expect with this PC's specs. For example simple things like GUI text may display when I start scenes in the Editor even when I have conditions setting their display to false in Start().

    I feel like I'm beating a dead horse with so many repeated posts. But I didn't even notice that this was priority 2. At least it's severity 1 but it should be priority 1! I've never had an issue anywhere close to this disruptive to my work flow.

    It really seems like this whole thing might be caused by the new MonoDevlop to me. I've been having problems with it even on PC with Unity freezing on Quit if MonoDevelop is open, this is 100% repro rate! So I have to close Unity first then close MonoDevelop or my Windows Unity freezes!

  2. 4352434c3a514912c8a0d82693d6cfc1?d=mm

    iKonrad

    Dec 11, 2013 01:18

    Yeah I second that the performance served by Unity on Mavericks is not acceptable. It is just impossible to use it - keeps freezing all the time, especially when in Play mode.
    Unity team, do something about it immediately.

  3. Fc6e2864dc744f015c595aebdb5e9b26?d=mm

    pneill

    Dec 10, 2013 22:18

    BTW, has anyone noticed this is listed as a P2 bug? I find this hard to believe. Unity, please convert this to a P1.

  4. E475368867974d2cf62f3418c554ba60?d=mm

    pdwarne

    Dec 10, 2013 17:23

    So FYI the Maverick BETA does not seem to make a difference in the long-term.

  5. 9f5efaa7c89dc3c23e02863d01f99fd0?d=mm

    Dump truk

    Dec 10, 2013 16:58

    Same issues here, early 2011 mbp. Unity is very nearly unusable!

  6. Cf2fa35b125b9b95044fe28e98863ca0?d=mm

    RyanZimmerman87

    Dec 10, 2013 02:27

    Just noticed that when these monodevelop freeze ups occur the Activity Monitor is reporting:

    MonoDevelop-Unity % CPU = 236.3

    How it possible for the CPU usage for 1 task to go over 100%? What in the heck is going on here very annoying...

  7. Cf2fa35b125b9b95044fe28e98863ca0?d=mm

    RyanZimmerman87

    Dec 10, 2013 00:25

    Spoke too soon again! The "Put hard disks to sleep when possible" setting appeared to fix the problem for about 10-15 minutes but must have been a coincidence. This issue comes and goes... doesn't make sense.

    Disabling that setting seemed to cause my Macbook to start using the fan a ton and it's usually silent... what a joke Apple come on this is unacceptable!

    Or maybe it's Unity's fault who knows. But I'm just not going to comment this is fixed unless everything works fine for like a week straight, every time I think it's working it randomly stops working a day later...

  8. Cf2fa35b125b9b95044fe28e98863ca0?d=mm

    RyanZimmerman87

    Dec 10, 2013 00:08

    OK well I spoke to soon the problem has come back. It seems most people are experiencing the problem in the Editor while the game is running? For me the problem only occurs in Monodevelop.

    But after reading someone's comment here I saw the energy saver settings. The Late 2013 macbook pro with the Iris integrated graphics does not seem to have the "Automatic Graphics Switching" setting.

    However, it does have a "Put hard disks to sleep when possible" setting. I just disabled this a few minutes ago but so far it seems to have fixed my Monodevelop problem. That would make sense I guess if the hard drive is asleep every time I try to build in MonoDevelop. It shouldn't put the hard drive to sleep when you are using a IDE but that's another story.

    Would recommend you guys try this if you having Monodevelop problems! This issue has now gotten 9/10 of my votes.

  9. E475368867974d2cf62f3418c554ba60?d=mm

    pdwarne

    Dec 09, 2013 14:58

    Found what appears to be a fix.

    Locate and install (at your own risk) Maverick Beta 10.9.1

    I can confirm this OS update appears to have fixed the problem for me (at least i've been using Unity for about an hour with no more hangs! Will post back later today to confirm if fix still works)

    if you are a dev I suppose you can maybe find the Mavericks beta direct from Apple via the dev center

  10. 796257c17c0d3d0e342e65f5c8d6b671?d=mm

    ExNinja

    Dec 08, 2013 16:43

    [TEMPORARY FIX] We've found that if you're on a Mac laptop and turn off "Automatic Graphics Switching" in the Energy Saver control panel, the stuttering diminishes or goes away. Try it and post your results.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.