Search Unity

Hiccups even when loading scene async

Discussion in 'Editor & General Support' started by liortal, Sep 12, 2016.

  1. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Hey,

    In our game, we load new popup windows on top of the current scene (additive) and using LoadLevelAsync.
    Here is a long frame that i captured (from the profiler, profiling the editor):

    upload_2016-9-12_8-42-41.png

    When using load async, why is this taking so long, and on the main scripting thread?

    In the screenshot above you can see the main thread is running these methods:
    • Loading.UpdatePreloading
    • Application.Integrate assets in background (on the main thread?)
    • Application.LoadLevelAsync
    I know that the editor's behaviour is different from running on the target device, but we cannot get any useful information without using "deep profiling", which isn't there on the device.