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

How to check if Burst works?

Discussion in 'Entity Component System' started by kro11, Apr 28, 2021.

  1. kro11

    kro11

    Joined:
    Sep 23, 2019
    Posts:
    95
    I am using IJobParallelFor job. It executes in all threads, but there is no tag "(Burst)" as on other burst jobs. There is a [BurstCompile] string before job. No warnings or errors.

    Is it possible that "(Burst)" tag is just not showing up, but it works?
     
  2. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    3,984
    Nope. Check if the Burst job is present and successfully compiled in the Burst Inspector.
     
    Greenwar and kro11 like this.
  3. kro11

    kro11

    Joined:
    Sep 23, 2019
    Posts:
    95
    I can see assembly code in Burst Inspector.
     
  4. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    3,984
    How many frames in are you profiling since the first time the job ran?
     
  5. kro11

    kro11

    Joined:
    Sep 23, 2019
    Posts:
    95
    It's a one-frame task.
     
  6. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    3,984
    [BurstCompile(CompileSynchronously = true)]
     
    kro11 likes this.
  7. threedots1

    threedots1

    Joined:
    Oct 9, 2014
    Posts:
    88
    Every single one of my burst jobs is tagged that way.... It's kind of tiring and annoying when you forget. I feel it should be the default option.
     
  8. Shinyclef

    Shinyclef

    Joined:
    Nov 20, 2013
    Posts:
    478
    If you want it on every job, you can set it via the menu: Jobs -> Burst -> Synchronous Compilation
     
    Yury-Habets likes this.
  9. threedots1

    threedots1

    Joined:
    Oct 9, 2014
    Posts:
    88
    Those options never saved correctly a long time ago and I don't think I've trusted or used them since.

    I should give it a second chance..