Search Unity

Question about Componentdata copy over multi systems

Discussion in 'Data Oriented Technology Stack' started by Modona, Sep 11, 2019 at 4:12 PM.

  1. Modona


    Feb 3, 2018
    If there is a EntityQuery with "LocalToWorld" component data, and Readonly query by the A_System and B_Sysetm(UpdateAfter A_System).And there is a CopyPosition job to copy this EntityQuery's entities into a NativeArray<float3> positionArrary, A_System and B_System both rely on the positionArrary.For performance concern, should I schedule the CopyPosition job twice or cache the positionArrary and then dispose after relative syetm has done.