Search Unity

Help with profiler log analysis

Discussion in 'Physics for ECS' started by argibaltzi, Sep 3, 2020.

  1. argibaltzi

    argibaltzi

    Joined:
    Nov 13, 2014
    Posts:
    220
    Hi gyes
    Can someone with more knowledge help me understand what is the problem here as i am trying to profile .


    Is there something wrong or am i having too many collisions?

    This is happening with around 3k rigid bodies, all have a box collider
    I would have expected better on a 6core cpu (2.60ghz), framerate drops to 15 fps

    I am using havok physics

    thanks!!
     
    Last edited: Sep 3, 2020
  2. petarmHavok

    petarmHavok

    Joined:
    Nov 20, 2018
    Posts:
    461
    From the profile it looks like you are using Unity Physics. All these Solver::, Integrator::, Narrowphase:: jobs are Unity Physics jobs. If you were using Havok you would have seen StepJob in a couple of places... Can we start from that and work our way through the performance numbers?
     
  3. argibaltzi

    argibaltzi

    Joined:
    Nov 13, 2014
    Posts:
    220
    Thanks pete, apparently there was some big bug with multiple physics system.... I was using a boot scene and then load/unload the scene levels as needed. it seems at unload they would not delete the physics step script....

    Is it advised to create 1 Physics Step once and keep it or create/destroy them on a per scene basis?
     
  4. petarmHavok

    petarmHavok

    Joined:
    Nov 20, 2018
    Posts:
    461
    Yes, PhysicsStep should be a singleton.
     
    argibaltzi likes this.