Constraint perforfmance drop
Posted: Fri Aug 05, 2016 11:37 am
Hello. im trying to integrate ragdoll physics into one old game. Its pretty much done and works well, but theres an issue:
to get rid off constraint stretching i decreased substep time to 0.0016.. (inc. num. substeps) and it causes strange performance drop which comes after like 2-5 seconds (16-20ms to 600-3000ms/cycle) for only one ragdoll (11 constraints(conetwist/hinge)) with default 10 solver interations. It doesnt appear with 1 solver interation (constraint->setOverrideNumSolverIterations(1), with world->getsolverinfo->numinterations doesnt work), but it comes back with 10 ragdolls. Anyway i noticed some 50-70ms spikes with default 1/60 substep too.
Any suggestions? Thank you.
to get rid off constraint stretching i decreased substep time to 0.0016.. (inc. num. substeps) and it causes strange performance drop which comes after like 2-5 seconds (16-20ms to 600-3000ms/cycle) for only one ragdoll (11 constraints(conetwist/hinge)) with default 10 solver interations. It doesnt appear with 1 solver interation (constraint->setOverrideNumSolverIterations(1), with world->getsolverinfo->numinterations doesnt work), but it comes back with 10 ragdolls. Anyway i noticed some 50-70ms spikes with default 1/60 substep too.
Any suggestions? Thank you.