Search Unity

5.3.2p4, LoadScene cost too much time on MarkObjects

Discussion in 'iOS and tvOS' started by skylorder, Feb 21, 2016.

  1. skylorder

    skylorder

    Joined:
    Apr 23, 2015
    Posts:
    16
    Hi
    After we upgrade Unity to 5.3.2 , we found loading much slow when loading scene in ios.
    This bug doesn't appear in Android.

    The log like following:
    Unloading 10626 unused Assets to reduce memory usage. Loaded Objects now: 5600.
    Total: 5863.975586 ms (FindLiveObjects: 3.825500 ms CreateObjectMapping: 4.058708 ms MarkObjects: 5792.780273 ms DeleteObjects: 63.308163 ms)

    Unloading 5776 unused Assets to reduce memory usage. Loaded Objects now: 5880.
    Total: 9257.671875 ms (FindLiveObjects: 3.028875 ms CreateObjectMapping: 2.391375 ms MarkObjects: 9172.416992 ms DeleteObjects: 79.832664 ms)

    At the begaining of the game, it's not so slow, but, the more we load scenes , the more lag the loading is. After changed 10+ levels, the MarkObjects costs more than 10 seconds.

    This bug both appears in 5.3.2p3 and p.3.2p4
    Please help us, thanks.
     
  2. officeguts

    officeguts

    Joined:
    Nov 14, 2014
    Posts:
    1
    I suffer from the same problem.

    Unloading 2 unused Assets to reduce memory usage. Loaded Objects now: 29699.
    Total: 184875.812500 ms (FindLiveObjects: 9.865000 ms CreateObjectMapping: 2.630000 ms MarkObjects: 184863.140625 ms DeleteObjects: 0.158000 ms)
     
  3. Yousician_unity_assets

    Yousician_unity_assets

    Joined:
    Dec 9, 2011
    Posts:
    11
    Yes we are having the same issue. This starts to be really annoying that on every release Unity fixes few issues and introduces multiple new ones. This has been the case for too long now. And there is really no going back to 5.2.x :(
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    Thanks for reporting this issue. We have been able to track down the cause and correct it. The 5.3.3 release (and any following patch releases) will have this corrected.
     
  5. Thorny2000

    Thorny2000

    Joined:
    Sep 18, 2014
    Posts:
    53
    Hijacking sorry - could you fix the issue with Game Center on AppleTV tvOS. Now in 5.3.2 p4 if you open Game Center it doesn't get focus or pause the game in the background, you're just stuck with Game Center open, not even pressing menu on the remote/joystick will exit and the game is getting all the input in the background (it shouldn't).

    Have reported this via bug reporting, this forum and Answers - can't seem to get noticed.
     
  6. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    @GMT

    Can you link to the forum post? I'll ping the iOS team about it then.
     
  7. Thorny2000

    Thorny2000

    Joined:
    Sep 18, 2014
    Posts:
    53
  8. skylorder

    skylorder

    Joined:
    Apr 23, 2015
    Posts:
    16

    I suffer from it to... Hope for a stable version:(
     
  9. Appxplore

    Appxplore

    Joined:
    Oct 2, 2015
    Posts:
    26
    I just see the WWW deadlock issue to be fixed and then now this pops up...
    waiting for this to be fixed too.
     
  10. GloriaVictis

    GloriaVictis

    Joined:
    Sep 1, 2016
    Posts:
    133
    Are you sure this issue has been fixed? We are on 5.5.2p1



    Unloading 26 unused Assets to reduce memory usage. Loaded Objects now: 334463.
    Total: 362.447357 ms (FindLiveObjects: 20.122826 ms CreateObjectMapping: 36.883793 ms MarkObjects: 304.677551 ms DeleteObjects: 0.762545 ms)


    Unloading 290 unused Assets to reduce memory usage. Loaded Objects now: 309040.
    Total: 530.695435 ms (FindLiveObjects: 20.214025 ms CreateObjectMapping: 27.870842 ms MarkObjects: 481.215057 ms DeleteObjects: 1.394534 ms)



    Unloading 386 unused Assets to reduce memory usage. Loaded Objects now: 340492.
    Total: 845.770508 ms (FindLiveObjects: 21.973032 ms CreateObjectMapping: 37.751297 ms MarkObjects: 782.311829 ms DeleteObjects: 3.733690 ms)


    Unloading 159 unused Assets to reduce memory usage. Loaded Objects now: 344910.
    Total: 1103.943726 ms (FindLiveObjects: 20.737215 ms CreateObjectMapping: 34.481281 ms MarkObjects: 1046.130981 ms DeleteObjects: 2.592271 ms)
     
  11. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    @GloriaVictis

    Yes, the specific issue in this case was corrected in 5.3.3. Maybe there is a different issue now though. If you would like to submit a bug report, we can investigate it.
     
  12. GloriaVictis

    GloriaVictis

    Joined:
    Sep 1, 2016
    Posts:
    133
    Actually its happening not all of the time and for some users only. We are looking if its possible that we introduced this bug by some kind of code issue or something like that but we have no idea where to start looking for it.

    As we cannot reproduce it (but still, receive logs from people where we see that issue clearly) is there anywhere we could start looking to check if its issue made by us?

    Sometimes those users don't have this issue at all, sometimes after a few minutes and sometimes after playing a 30+ minutes long session their "MarkObjects" start to stack making game unplayable.

    Could you please tell me what exactly calls that Unload? We could try to avoid that as much as possible until you will find a solution for this.
     
    Last edited: Mar 19, 2017
  13. GloriaVictis

    GloriaVictis

    Joined:
    Sep 1, 2016
    Posts:
    133
    I have spoken with our users, they all claim that bad lag spikes started about two weeks ago - its the time we have moved from 5.4.3p4 into 5.5.2p1. Seems like the same bug was introduced somewhere on 5.5.

    Submitted a bug right now.
     
  14. GloriaVictis

    GloriaVictis

    Joined:
    Sep 1, 2016
    Posts:
    133
    Bumping, forgot to state it clearly - it happens on Windows build.
     
  15. GloriaVictis

    GloriaVictis

    Joined:
    Sep 1, 2016
    Posts:
    133
    I do know you have your priorities and it takes time to process issues but could we get a info about if issue could be made by us - and if so what could make it so we won't waste more time looking for reproduction?