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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Significant performance hit after upgrading to 2022 (burst)

Discussion in 'Entity Component System' started by Knosis, May 11, 2022.

  1. Knosis

    Knosis

    Joined:
    Mar 16, 2019
    Posts:
    3
    Did significant changes to burst compiler or to jobs? Most of my burst compiled jobs in 2021.2.17f are ~10x slower in 2022;
    No package or code changes.

    2021:
    upload_2022-5-11_9-33-15.png

    2022:
    upload_2022-5-11_9-32-23.png

    Edit:
    Tried upgrading burst to 1.7.1 and deleting the library folder (helped me in the past with burst bugs), still slow.
     
    Last edited: May 11, 2022
    OndrejP likes this.
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,594
    It maybe because, DOTS packages are not ready for 2022.
     
  3. Knosis

    Knosis

    Joined:
    Mar 16, 2019
    Posts:
    3
    I mean, it wasn't ready for 2021 either :D. But you are right.

    A bit worried however, since entities has a lot of problems in 2021 and I'm expecting 0.51 to be released only for 2022 at this point.
     
  4. OndrejP

    OndrejP

    Joined:
    Jul 19, 2017
    Posts:
    297
    That scared me a bit. I'll ask stupid question, are you comparing performance with disabled safety checks and enabled synchronous compilation? Are you using Jobs or
    BurstCompiler.CompileFunctionPointer
    ?
     
  5. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,594
    Luxxuor likes this.
  6. Knosis

    Knosis

    Joined:
    Mar 16, 2019
    Posts:
    3
    Synchronous compilation ON, safety check OFF
    Leak detection and jobs debugger OFF (if it matters)
    I only use jobs no function pointers

    That said, I'm back with 2021. I wasn't expecting any changes with 2022 tho.
     
    Last edited: May 11, 2022
  7. vectorized-runner

    vectorized-runner

    Joined:
    Jan 22, 2018
    Posts:
    383
    I'm curious, is this Entities.ForEach job or user defined job struct? Also is it parallel job?
     
    hippocoder likes this.
  8. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Jobs and Burst should work fine in 2022, so please file a bug (but only those features, as they aren't depending on the rest of dots like entities).

    So if you are not using entities it would be a valid bug I think?