Search Unity

[5.3.5 fixed] Canvas.Sort in 5.3.4p6 Android IL2CPP taking several seconds

Discussion in 'UGUI & TextMesh Pro' started by einWikinger, May 19, 2016.

  1. einWikinger

    einWikinger

    Joined:
    Jul 30, 2013
    Posts:
    97
    Hi, I'm currently working on a rather big mobile game project and I have some weird issues with the Canvas sorting, but only when built with IL2CPP for Android! I'm about to file a bug report but I need to get the clearance from my client first because I guess I won't be able to put a isolated reproduction case together.

    So when I perform a specific action inside the game on a device, the frametime will spike horribly (>12 SECONDS) and this is what I see for the profiling timeline in those moments:

    upload_2016-5-19_10-58-38.png

    There are multiple canvas sorting jobs posted and each of them takes around 3 seconds to complete. Does anyone maybe know where I could look what could be the connection between IL2CPP and the Canvas sorting? Is the UnityUI library put through IL2CPP as well and may exhibit special IL2CPP bugs in this case?
    I also don't have the option to try to reproduce this on iOS IL2CPP, so I don't know if it's related to android specifically or to IL2CPP.
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    @einWikinger

    I'm not aware of any issues like this. If you can submit a bug report, I would appreciate it. We will investigate. Thanks!
     
  3. einWikinger

    einWikinger

    Joined:
    Jul 30, 2013
    Posts:
    97
    Just to follow up - the issue seems to be fixed in 5.3.5! I couldn't reproduce it anymore.
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    @einWikinger

    I'm glad to hear that. Please let us know if it shows up again.