MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / postSolver

Method postSolver

physx/source/simulationcontroller/src/ScScene.cpp:3445–3470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3443}
3444
3445void Sc::Scene::postSolver(PxBaseTask* continuation)
3446{
3447 PX_PROFILE_ZONE("Sc::Scene::postSolver", getContextId());
3448 PxcNpMemBlockPool& blockPool = mLLContext->getNpMemBlockPool();
3449
3450 //Merge...
3451 mDynamicsContext->mergeResults();
3452 blockPool.releaseConstraintMemory();
3453 //Swap friction!
3454 blockPool.swapFrictionStreams();
3455
3456 mCcdBodies.clear();
3457 mProjectedBodies.clear();
3458
3459#if PX_ENABLE_SIM_STATS
3460 mLLContext->getSimStats().mPeakConstraintBlockAllocations = blockPool.getPeakConstraintBlockCount();
3461#endif
3462
3463 mConstraintProjection.setContinuation(continuation);
3464
3465 integrateKinematicPose();
3466
3467 mConstraintProjection.removeReference();
3468
3469 //afterIntegration(continuation);
3470}
3471
3472void Sc::Scene::postCCDPass(PxBaseTask* /*continuation*/)
3473{

Callers

nothing calls this directly

Calls 7

swapFrictionStreamsMethod · 0.80
setContinuationMethod · 0.80
getContextIdFunction · 0.50
clearMethod · 0.45
removeReferenceMethod · 0.45

Tested by

no test coverage detected