Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question Unity profiler, Update.ScriptRunDelayedTask causes spikes

Discussion in 'Editor & General Support' started by kevincicero98, Jan 21, 2023.

  1. kevincicero98

    kevincicero98

    Joined:
    Apr 14, 2020
    Posts:
    4
    I'm having some spikes problems in my mobile game and I think the problem is caused by the Update.ScriptRunDelayedTask, but I don't understand what it means speicifically. It means coroutines? Delay on the monobehaviour made by IEnumerator like "IEnumerator Start()" or maybe async functions that cause delay? Can you help me understand where to search? here's a screenshot of the profiler screen.PNG
     
    stonstad, nantoaqui and echolink like this.
  2. Rise772

    Rise772

    Joined:
    May 6, 2018
    Posts:
    6
    Did you get anywhere with this?
     
  3. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,371
    Looks like async code. If you set the profiler to deep profile mode, it'll usually show you a bunch more information about which methods contains the calls taking time.