Search Unity

Question What is the overhead associated with loading a Scene?

Discussion in 'World Building' started by atrivedi7, Mar 10, 2022.

  1. atrivedi7

    atrivedi7

    Joined:
    Jul 25, 2013
    Posts:
    92
    Hi all!

    Is there an inherent overhead in loading a scene. For example if I had a scene with 1000 gameobjects, would it load the same as 10 scenes with 100 each (assuming the objects are all the same)? If there is some overhead, is that overhead constant time or does it scale with the size of the scene?

    I could test this out, but I just don't know if there are other things at play when loading scenes like dependencies and cache. I also looked at the API and manual and couldn't find any info on this.

    Any insight would be greatly appreciated. Thank you!
     
  2. joshcamas

    joshcamas

    Joined:
    Jun 16, 2017
    Posts:
    1,277
    There shouldn't be any overhead per scene, just more on the contents of the scene itself. When a scene is loaded, it's contents is loaded into memory, including any asset references that are not yet loaded in memory.
     
    atrivedi7 likes this.