Search Unity

Stuttering / Motion hiccups on iOS when using Unity >= 4.6.3f3

Discussion in 'iOS and tvOS' started by ultraschall, May 26, 2015.

  1. ultraschall

    ultraschall

    Joined:
    Feb 14, 2013
    Posts:
    30
    Hello, i have recently upgraded our project from 4.6.3f1 to the latest version 4.6.5 and our Augmented Reality APP is jerky now.

    It's an augmented app with webcamtexture involved (the webcam runs at 30fps). The app stutters if you move the camera around the augmented object.

    Other threads have commented that vsync with Unity can be problematic sometimes too. Maybe its related to this. Did anything change in this context with 4.6.3f3 ?

    The problem appears beginning from unity 4.6.3f3 while 4.6.3f2 is still fine. As you see in the two profiles attached i have CPU spikes with all versions >= 4.6.3f3

    I am testing on iOS7/8 & iphone5

    Looking forward to your reply.

    Thanks in advance,

    Andre

    Problematic Profile, published with >= 4.6.3f3
    Profile_463f3.png


    Profile published with <= 4.6.3f2 which works fine Profile_463f2.png
     
  2. martonekler

    martonekler

    Unity Technologies

    Joined:
    Feb 5, 2015
    Posts:
    31
    Hi Andre,

    could you try the following modification in UnityAppController+Rendering.mm and see if it helps?

    change this:
    #define ENABLE_DISPLAY_LINK_PAUSING 1
    #define ENABLE_DISPATCH 1

    to this:
    #define ENABLE_DISPLAY_LINK_PAUSING 0
    #define ENABLE_DISPATCH 0

    Best regards,
    Marton
     
  3. ultraschall

    ultraschall

    Joined:
    Feb 14, 2013
    Posts:
    30
    Hello Marton, this seems to fix it ! Thanks a lot for your quick support.