Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Slow Scene Load?

Discussion in 'Editor & General Support' started by jleven22, Sep 6, 2020.

  1. jleven22

    jleven22

    Joined:
    Mar 26, 2019
    Posts:
    436
    New to Unity and scripting, so need help on a problem that is new to me.

    I have a game with several levels. Right now they all load almost instantly, except for one scene. But it's weird because it's the smallest with the least amount of content and processing. But this scene takes about a minute to load - it's definitely something broken.

    What are some good methods for checking why a slow scene load might take place?
     
  2. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    507
  3. jleven22

    jleven22

    Joined:
    Mar 26, 2019
    Posts:
    436
    Ok, I gave this a shot, but I'm not certain what I'm looking at.




    I'm assuming this has to do with the content of the next scene, but honestly I gave it a search and cannot figure it out. It has the least amount of content, doesn't have any complex start functions...

    So is there a way to dig into the reasons for the preloading issues in the profiler? Like can it point me to specifically what the issue is?
     
  4. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    507
    While using the Profiler, are you noticing a peak or an increase of activity (CPU Usage block, the first one on your screen capture) just at the moment where you're experiencing the slow scene loading?
     
  5. jleven22

    jleven22

    Joined:
    Mar 26, 2019
    Posts:
    436
    Turns out it was a bug that has been fixed! I'm so grateful, that's the only time I've ever had this quick a resolution lol.

    More info here:
    https://issuetracker.unity3d.com/is...rocess-noticeably-slower-when-opening-a-scene
     
  6. JofreMP

    JofreMP

    Joined:
    Sep 20, 2019
    Posts:
    8
    This problem is still happening on the version 2020.3.11f1. Somebody knows if they will fix it soon?
     
  7. JofreMP

    JofreMP

    Joined:
    Sep 20, 2019
    Posts:
    8
    I found what caused my problem. In case someone finds in a similar situation, loading a scene in async mode, I recommend to enable Texture Streaming. Probably the issue is because Unity is trying to load all the same prefabs without the textures being loaded, so it takes a long time.

    I hope this helps.
     
  8. AABID965

    AABID965

    Joined:
    Sep 30, 2022
    Posts:
    9
    same problem here and please tell me have you find any solution
     
  9. surifier

    surifier

    Joined:
    Sep 24, 2021
    Posts:
    4
    Hi guys for me the same issue is happening scene takes more time to load and also it takes more than 16mins to load game mode in our game only one levels takes more time to load have no idea why it is profiler and console seems clean and no issue with that we using unity 2021.3.21f1 lts version can someone please assist regarding this issue?
     
  10. Tanoshimi2000

    Tanoshimi2000

    Joined:
    Feb 10, 2014
    Posts:
    46
    I am having the same issue in 2022.3.5f. Loading a scene can take as long as 8 minutes for me. No bueno!
     
  11. WTWStudio

    WTWStudio

    Joined:
    Apr 11, 2023
    Posts:
    1
    Were you able to solve the problem?