Search Issue Tracker

Won't Fix

Votes

1

Found in

2019.1.0f2

2019.3

Issue ID

1153327

Regression

No

[PHYSX] PhysX.PxsContext.contactManagerDiscreteUpdate spikes when small amount of rigidbodies are being spawned

Physics

-

To reproduce:
1. Open attached project
2. Press play and go to profiler
3. In the game press Respawn button
4. In the profiler check PhysX.PxsContext.contactManagerDiscreteUpdate

Actual result: Huge spikes of physics appear
Expected result: There should be no spikes

Reproduced with: 2019.1.8f1; 2019.2.0b7; 2019.3.0a8
Can't check on 2017.4 and 2018.4 due to errors.

  1. Resolution Note:

    The time taken here is to fetch triangles that may be potentially overlapping with the bounds of the bodies. Apparently, this is a very costly process in PhysX, and the only real way to bring it down in this project is to reduce the resolution of the terrain heightmap.

Comments (3)

  1. ashishverma

    Feb 11, 2020 06:48

    In case of my game I have pool balls which are instantiating. And when I am taking shots and ball are in motion then it is happening.

  2. ashishverma

    Feb 11, 2020 06:44

    Happening in 2018.4.15 also, Please try to fix this.

  3. laeusnb

    Aug 16, 2019 23:22

    Happens in 2018.4.2f1 as well.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.