Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Need help with incredibly long playtime loading times

Discussion in 'Editor & General Support' started by Tr4by, Aug 18, 2022.

  1. Tr4by

    Tr4by

    Joined:
    Mar 4, 2022
    Posts:
    4
    It takes unity +5 minutes to load an empty scene in one of the projects that I have. Everything works perfectly fine in other projects, even ones with the same version. My coworkers, working on the same project, haven't run into this issue. Unity appears unresponsive and doesn't show anything before loading playmode.

    Things I've tried so far:
    - Restarting Unity
    - Rebooting PC
    - Reinstalling Unity (2020.3.19f1, Win10 x64)
    - Deleting cache within the editor
    - Deleting cache manually, including registry and locallow files
    - Loading other scenes
    - Switching to other branches of the same project via Gitlab
    - Redownloading the entire project
    - Removing the library folder

    It takes Unity 2979ms to enter playmode in any other project, but 389761ms (over 6 minutes) in this one.

    I've found these lines in the Editor.log file, which seem relevant:
    ImportAndPostprocessOutOfDateAssets: 191079.116ms (846.662ms without children)
    ImportManagerImport: 184159.167ms (994.995ms without children)
    ImportInProcess: 183144.233ms
    UpdateCategorizedAssets: 19.939ms
    PostProcessAllAssets: 5977.077ms
    ReloadImportedAssets: 1.714ms
    EnsureUptoDateAssetsAreRegisteredWithGuidPM: 3.280ms
    InitializingProgressBar: 0.324ms
    PostProcessAllAssetNotificationsAddChangedAssets: 1.285ms
    OnDemandSchedulerStart: 33.025ms
    RestoreLoadedAssetsState: 10.330ms

    I hope someone can help me with this.
     

    Attached Files:

  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,951
    See pinned post in this forum and pinned posts in the Scripting forum.
     
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,456
    Try if the latest 2020.3 lts improves it and use the profiler to see what takes so long
     
  4. Tr4by

    Tr4by

    Joined:
    Mar 4, 2022
    Posts:
    4
    Thanks Kurt, didn't realize that "Editor Progress Bar stalls" was what I was looking for.

    Either way, I think that my case is interesting, as other people using the same project as me, don't experience the same thing.
     
  5. Tr4by

    Tr4by

    Joined:
    Mar 4, 2022
    Posts:
    4
    I tried a different version (2021.3.1f1 since I had that one already installed) and that didn't help. I wish I wouldn't want to switch versions, since my entire team would have to do that too.
     
  6. Tr4by

    Tr4by

    Joined:
    Mar 4, 2022
    Posts:
    4
    The issue magically fixed itself today. I have no idea how or why, but it just works now. The only thing I did yesterday, without checking if anything changed was:

    - Rebooting my PC twice, without starting the project
    - Working on a different project, on the same version

    It's unlikely that any of these are what fixed it, but I don't have a better guess. .-.
     
  7. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,456
    Maybe there was a driver update in yhe background as well?