- Home /
PhysX.PxsCMDiscreteUpdateTask
My game is slowing down due to PhysX.PxsCMDiscreteUpdateTask Can anyone help me in this problem. I don't know how to fix it
!][2]
I have the same problem... Just to let you know that you're not alone. Have you found a solution yet?
Answer by Matou · Mar 18, 2016 at 04:02 PM
I made a few tests and I may have some things that can help:
do not move/rotate a rigidbody in the code while the corresponding constraints are activated. In my case I was doing a rigidbody.MoveRotation while freezeRotation was true. I replaced with a simple transform.rotation = ... and it got better.
Use less vertices in mesh colliders and divide huge colliders (as in "huge bounding box") in many smaller ones, though you don't seem to have heavy 3D data according to your screens.
avoid resizing collider by code. It seems to trigger some kind of physics data structure rebuilding and the lag can last for a few frames...
I'm not sure this totally solves the problem, but it seems to run smoother this way.
Hope this helps!
Your answer
Follow this Question
Related Questions
Slow Time for a single Rigid Body 5 Answers
2D 360 degress platformer example needed 0 Answers
Help with orbits 1 Answer
[Physics]Forklift Problem. 1 Answer
Would it be possible to record animations in playmode? 1 Answer