Search Unity

Diagnosing cause of JobHandle.Complete called in BeforeOnUpdate()

Discussion in 'Entity Component System' started by jdtec, Jul 8, 2019.

  1. jdtec

    jdtec

    Joined:
    Oct 25, 2017
    Posts:
    302
    One of my systems is causing a major stall from a Complete() call within JobComponentSystem.BeforeOnUpdate(). How would I go about diagnosing the cause of this?

     

    Attached Files:

  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,761
    Look at the graph on profiler? It shows duration of each job.

    Also you can just turn off burst and step through a job like regular code to see what's going on.
     
    Last edited: Jul 8, 2019
    jdtec likes this.