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

Resolved How to find what job SystemBase.CompleteDependency() is waiting for

Discussion in 'C# Job System' started by SergeyRomanko, Oct 9, 2020.

  1. SergeyRomanko

    SergeyRomanko

    Joined:
    Oct 18, 2014
    Posts:
    47
    Hello,
    my application has big performance issue. A system waits for completion of a job

    img.jpg

    Everything happens inside ecs code, so I could not figure out what job creates the problem. There are a lot of jobs it the application, it will take forever to check them one by one. Is there a way to find out what job take so much time to finish?
     
  2. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    3,937
    In 2020.1 the timeline view can show you this if you enable the job dependency arrows.
     
    apkdev likes this.
  3. SergeyRomanko

    SergeyRomanko

    Joined:
    Oct 18, 2014
    Posts:
    47
    Do you mean this option?
    dep.png
     
  4. SergeyRomanko

    SergeyRomanko

    Joined:
    Oct 18, 2014
    Posts:
    47
    This is how my timeline view looks like. But I still don't understand what it is waiting for
    timeline.png
     
  5. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    3,937
    "Show Flow Events" on the top right of the timeline view. It is behind the 3 vertical dots.
     
    apkdev likes this.
  6. SergeyRomanko

    SergeyRomanko

    Joined:
    Oct 18, 2014
    Posts:
    47
    Thank you, it helped

    I will leave screenshots here for someone who may find this topic in future
    Screenshot_16.png Screenshot_17.png
     
    VasiliyChe, Egad_McDad and apkdev like this.