Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

PhysX Processing Time Shown In Profiler Even When Using Only 2D Physics

Discussion in 'Physics' started by jeffweber, Nov 4, 2015.

  1. jeffweber

    jeffweber

    Joined:
    Dec 17, 2009
    Posts:
    616
    I noticed that the profiler shows PhysX taking some processing time even though I'm only using 2D Physics (At least that is my intent).

    Is this to be expected? Is there something I need to do to completly disable PhysX for my project?

    Profiler Screenshot:
     
  2. jeffweber

    jeffweber

    Joined:
    Dec 17, 2009
    Posts:
    616
    anyone?
     
  3. funshark

    funshark

    Joined:
    Mar 24, 2009
    Posts:
    225
    Same here.. Looking for an answer too :/
     
  4. DxStd_IgnatPribylov

    DxStd_IgnatPribylov

    Joined:
    Sep 24, 2015
    Posts:
    30
    Russian community has discussed this a month ago. Seeing horrible code integrated into the unity box2D, We came to the conclusion that physX is the fastest physics engine.
     
  5. MortenSkaaning

    MortenSkaaning

    Joined:
    Jan 16, 2015
    Posts:
    120
    we're planning to skip the PhysX updates when there are no Rigidbodies in the scene, that should eliminate the time spent.
     
  6. funshark

    funshark

    Joined:
    Mar 24, 2009
    Posts:
    225
    Mh, I think the point here is why do we have PhysX when we're only using box2D
     
  7. DxStd_IgnatPribylov

    DxStd_IgnatPribylov

    Joined:
    Sep 24, 2015
    Posts:
    30
    Box2D has a terrible integration into unity3d. Besides, it (Box2D) is not the best 2D engine. Therefore, PhysX runs faster.
     
  8. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,321
    Really?
     
  9. MortenSkaaning

    MortenSkaaning

    Joined:
    Jan 16, 2015
    Posts:
    120
    what I was trying to say is we already have plans to make the 3D physics update (PhysX) disappear when only doing 2D physics.
     
  10. jeffweber

    jeffweber

    Joined:
    Dec 17, 2009
    Posts:
    616
    Good the hear... and thanks.

    Also disagree about Box2D. Been following if for along time and I think it's great!
     
  11. DxStd_IgnatPribylov

    DxStd_IgnatPribylov

    Joined:
    Sep 24, 2015
    Posts:
    30
    Ahaha. :)
    I said what I had seen. Of course, you know more. I am very glad that you are working on it.
     
  12. Roni92pl

    Roni92pl

    Joined:
    Jun 2, 2015
    Posts:
    396
    So, maybe you could tell us what you have seen. Thats interesting.
     
  13. Menion-Leah

    Menion-Leah

    Joined:
    Nov 5, 2014
    Posts:
    189
    Any update on this?
    Thanks
     
  14. MortenSkaaning

    MortenSkaaning

    Joined:
    Jan 16, 2015
    Posts:
    120
    it's been added to 5.4, not in 5.3 yet
     
  15. Menion-Leah

    Menion-Leah

    Joined:
    Nov 5, 2014
    Posts:
    189
    Thanks!