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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

[Case 1212334] PhysicsStepQuery in BuildPhysicsSystem being recreated excessively

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

  1. thelebaron

    thelebaron

    Joined:
    Jun 2, 2013
    Posts:
    756
    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