Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. We are looking for your feedback about Templates! Tell us about your experiences by taking our survey.
    Dismiss Notice
  3. The Burst compiler has its own forum section now.
    Dismiss Notice
  4. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Loading normally versus Async

Discussion in 'Scripting' started by Magnite7, Apr 18, 2016.

  1. Magnite7

    Magnite7

    Joined:
    Dec 12, 2012
    Posts:
    125
    Excuse me if there is a post about this already -- I was unable to find it.

    What is the true difference between loading a scene normally versus loading it asynchronously? Is the latter done on a separate thread?
     
  2. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    7,381
    pretty much

    Loading normally means the game stops rendering or doing anything while the load goes on.

    Async means that the game will continue processing while the load occurs.

    You use the 'Async' method to be able to animate some loading screen while you load.
     
  3. skalev

    skalev

    Joined:
    Feb 16, 2012
    Posts:
    264
    One important note about both methods, is that only the Loading part of the scene is done Async. After that part is done, Unity uses the main thread to activate the loaded scene(s) which can result (especially in editor, builds are better) in a slight freeze/hiccup.
     
unityunity