Search Unity

[Case 1212334] PhysicsStepQuery in BuildPhysicsSystem being recreated excessively

Discussion in 'Physics for ECS' started by thelebaron, Jan 17, 2020.

  1. thelebaron

    thelebaron

    Joined:
    Jun 2, 2013
    Posts:
    857
    Appears to be related to the latest entities version(0.5 preview 17), 0.4x does not produce this error. Repro project has a specific manifest that reproduces it if for some reason just grabbing the latest entities and physics does not reproduce it(though I expect it does).
     
    florianhanke likes this.
  2. florianhanke

    florianhanke

    Joined:
    Jun 8, 2018
    Posts:
    426
    I have the same issue.

    When I comment out

    Code (CSharp):
    1. if (HasSingleton<PhysicsStep>())
    2. {
    3.     stepComponent = GetSingleton<PhysicsStep>();
    4. }
    in
    BuildPhysicsWorld
    , the issue does not occur (I think
    PhysicsStep
    does not normally occur in the queries list for BuildPhysicsSystem, but I may be wrong).
     
    Last edited: Jan 21, 2020