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

FixedUpdate.PhysicsFixedUpdate Physics.Processing terrible performance

Discussion in '2018.1 Beta' started by XRA, Mar 9, 2018.

  1. XRA

    XRA

    Joined:
    Aug 26, 2010
    Posts:
    265
    Trying my 2017.3 project in 2018.1 beta and getting terrible performance, it is all coming from FixedUpdate.PhysicsFixedUpdate
    Inside Physics.Processing, various PhysX commands are causing huge ms spikes

    I dont see these issues in 2017.3, still digging around to isolate what in-scene is causing it.


    non-deep profile:
    PhysX.PxsSap.sapPostUpdateWork 85ms
    PhysX.PxsAABBManager.processBroadphaseResults 34ms
    PhysX.PxsAABBManager.singleAABB 23ms
    PhysX.PxsContext.prepareCMDiscreteUpdateResults 103ms

    some culprits in deep profile, generally same as non-deep profile
    PhysX.PxsContext.prepareCMDiscreteUpdateResults
    PhysX.PxsDynamics.solverCreateFinalizeConstraints
    PhysX.ScScene.broadPhase
    PhysX.PxsSap.sapPostUpdateWork
     
  2. XRA

    XRA

    Joined:
    Aug 26, 2010
    Posts:
    265
    Wooriline and Peter77 like this.
  3. hwaet

    hwaet

    Joined:
    Mar 21, 2015
    Posts:
    26
    I reported this as well. In my case it was caused by the rigidBody component. An otherwise empty scene will have the performance spikes if you drop that component in there. When I reported it back on 2018.1.0b4, I got pointed to the same issue number linked above. After a poke this morning, the QA team let me know that they're aware it's still present and are working on a fix.

    Hang in there!
     
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,102
  5. Klarkerus

    Klarkerus

    Joined:
    Mar 10, 2018
    Posts:
    1
    Yes. I have the same issue and it is related to the rigidbody component. Even a single Rigidbody causes high performance spikes.
     
  6. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,391
  7. hwaet

    hwaet

    Joined:
    Mar 21, 2015
    Posts:
    26
    Thanks @Peter77! I got super excited to try your fix, but the issue still exists for me. Are you using the new SRP?

    Also thanks @LeonhardP for confirming the official fix is on the way. That's a relief to hear!
     
  8. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,391
    Nope, still using the legacy deferred renderer.