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. Dismiss Notice

long time when enter play mode first time.

Discussion in 'Editor & General Support' started by little_box, Nov 26, 2020.

  1. little_box

    little_box

    Joined:
    Aug 22, 2017
    Posts:
    27
    I upgrade unity from 2018.2.21f to 2018.4.29f. In the new version, it takes almost 5 minutes to go into play mode first time, even in empty scene. But new empty project is fine. I recorded the log output of the editor in play mode first time.
    Any help would be super appreciated.
     

    Attached Files:

  2. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,160
  3. little_box

    little_box

    Joined:
    Aug 22, 2017
    Posts:
    27
    I caught it. This is the profiler's screenshot. ApplicationTickTimer takes 316,985ms.
     

    Attached Files:

  4. little_box

    little_box

    Joined:
    Aug 22, 2017
    Posts:
    27
    Here's a another screenshot.
     

    Attached Files:

  5. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,160
    Well, that selected sample makes up some 7ms of that frame time so I doubt that's the main issue here. You might want to sort the hierarchy by the time taken for each sample and focus on those taking the biggest chunk out of the enter Playmode time.