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

Question EndFrameTRSToLocalToWorldSystem too Slow

Discussion in 'Entity Component System' started by Opeth001, Sep 21, 2020.

  1. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,068
    Hello Everyone,

    After upgrading my project from Unity 2016.4.x to 2020.1.x the fps dropped and this is related to EndFrameTRSToLocalToWorldSystem.
    this system is supposed to update the LocalToWorld cd from Translation, Rotation and Scale. for some reason this applies to all existing entities, even static ones, which doesn't make sense to me.

    can someone explain it please?
     
  2. YurySedyakin

    YurySedyakin

    Joined:
    Jul 25, 2018
    Posts:
    61
    Hey, I have a guess on what's going on. There is a changed check at the beginning of TRSToLocalToWorldSystem.Execute. In particular, it checks chunk.DidOrderChange. My guess is that's the cause. See my (quite old) post:
    https://forum.unity.com/threads/need-read-only-access-to-dynamic-buffers.843934/#post-6126437
    And the corresponding issue tracker:
    https://issuetracker.unity3d.com/is...with-withreadonly-bufferfromentity-expression
    Good news is that the issue is marked as "Fix In Review for 0.15" Yohoo!!!
     
    charleshendry and Opeth001 like this.
  3. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,068
    thanks !!!