31 #ifndef PX_SIMULATION_STATISTICS 32 #define PX_SIMULATION_STATISTICS 170 return nbBroadPhaseAdds;
180 return nbBroadPhaseRemoves;
200 (pairType <= eTRIGGER_PAIRS),
201 "Invalid pairType in PxSimulationStatistics::getRbPairStats");
212 case eDISCRETE_CONTACT_PAIRS:
213 nbPairs = nbDiscreteContactPairs[g0][g1];
216 nbPairs = nbCCDPairs[g0][g1];
218 case eMODIFIED_CONTACT_PAIRS:
219 nbPairs = nbModifiedContactPairs[g0][g1];
222 nbPairs = nbTriggerPairs[g0][g1];
270 nbActiveConstraints (0),
271 nbActiveDynamicBodies (0),
272 nbActiveKinematicBodies (0),
277 nbAxisSolverConstraints (0),
278 compressedContactSize (0),
279 requiredContactConstraintMemory (0),
280 peakConstraintMemory (0),
281 nbDiscreteContactPairsTotal (0),
282 nbDiscreteContactPairsWithCacheHits (0),
283 nbDiscreteContactPairsWithContacts (0),
290 nbBroadPhaseAdds = 0;
291 nbBroadPhaseRemoves = 0;
297 nbDiscreteContactPairs[i][j] = 0;
298 nbModifiedContactPairs[i][j] = 0;
299 nbCCDPairs[i][j] = 0;
300 nbTriggerPairs[i][j] = 0;
Definition: GuContactBuffer.h:37
PxU32 nbArticulations
Number of articulations in the scene.
Definition: PxSimulationStatistics.h:139
PxU32 compressedContactSize
The size (in bytes) of the compressed contact stream in the current simulation step.
Definition: PxSimulationStatistics.h:150
PxU32 getRbPairStats(RbPairStatsType pairType, PxGeometryType::Enum g0, PxGeometryType::Enum g1) const
Get number of shape collision pairs of a certain type processed for the current simulation step...
Definition: PxSimulationStatistics.h:197
PxU32 nbStaticBodies
Number of static bodies for the current simulation step.
Definition: PxSimulationStatistics.h:116
PxU32 requiredContactConstraintMemory
The total required size (in bytes) of the contact constraints in the current simulation step...
Definition: PxSimulationStatistics.h:155
PX_FORCE_INLINE PxU32 getNbBroadPhaseRemoves() const
Get number of broadphase volumes removed for the current simulation step.
Definition: PxSimulationStatistics.h:178
Class used to retrieve statistics for a simulation step.
Definition: PxSimulationStatistics.h:51
Shape pairs processed as swept integration pairs for the current simulation step. ...
Definition: PxSimulationStatistics.h:74
PX_FORCE_INLINE PxU32 getNbBroadPhaseAdds() const
Get number of broadphase volumes added for the current simulation step.
Definition: PxSimulationStatistics.h:168
#define PX_FORCE_INLINE
Definition: PxPreprocessor.h:364
PxU32 nbAggregates
Number of aggregates in the scene.
Definition: PxSimulationStatistics.h:134
PxU32 nbLostTouches
Number of lost touches from NP this frame.
Definition: PxSimulationStatistics.h:262
PxU32 nbDiscreteContactPairsWithCacheHits
Total number of (non CCD) pairs for which contacts are successfully cached (<=nbDiscreteContactPairsT...
Definition: PxSimulationStatistics.h:237
PxU32 nbActiveDynamicBodies
Number of active dynamic bodies for the current simulation step.
Definition: PxSimulationStatistics.h:103
internal use only!
Definition: PxGeometry.h:62
PxU32 nbDynamicBodies
Number of dynamic bodies for the current simulation step.
Definition: PxSimulationStatistics.h:123
PxU32 nbBroadPhaseRemoves
Definition: PxSimulationStatistics.h:316
PxU32 peakConstraintMemory
The peak amount of memory (in bytes) that was allocated for constraints (this includes joints) in the...
Definition: PxSimulationStatistics.h:160
Shape pairs processed with user contact modification enabled for the current simulation step...
Definition: PxSimulationStatistics.h:81
PxU32 nbNewPairs
Number of new pairs found by BP this frame.
Definition: PxSimulationStatistics.h:247
PxU32 nbActiveConstraints
Number of active PxConstraint objects (joints etc.) for the current simulation step.
Definition: PxSimulationStatistics.h:96
PxU32 nbNewTouches
Number of new touches found by NP this frame.
Definition: PxSimulationStatistics.h:257
PxU32 nbPartitions
Number of partitions used by the solver this frame.
Definition: PxSimulationStatistics.h:267
PxU32 nbDiscreteContactPairsTotal
Total number of (non CCD) pairs reaching narrow phase.
Definition: PxSimulationStatistics.h:231
Enum
Definition: PxGeometry.h:53
PxU32 nbBroadPhaseAdds
Definition: PxSimulationStatistics.h:315
RbPairStatsType
Different types of rigid body collision pair statistics.
Definition: PxSimulationStatistics.h:59
PxSimulationStatistics()
Definition: PxSimulationStatistics.h:269
PxU32 nbDiscreteContactPairsWithContacts
Total number of (non CCD) pairs for which at least 1 contact was generated (<=nbDiscreteContactPairsT...
Definition: PxSimulationStatistics.h:242
#define PX_ASSERT_WITH_MESSAGE(condition, message)
Definition: PxAssert.h:63
PxU32 nbActiveKinematicBodies
Number of active kinematic bodies for the current simulation step.
Definition: PxSimulationStatistics.h:111
#define PX_ASSERT(exp)
Definition: PxAssert.h:61
PxU32 nbLostPairs
Number of lost pairs from BP this frame.
Definition: PxSimulationStatistics.h:252
uint32_t PxU32
Definition: Px.h:48
Shape pairs processed as discrete contact pairs for the current simulation step.
Definition: PxSimulationStatistics.h:64
PxU32 nbAxisSolverConstraints
The number of 1D axis constraints(joints+contact) present in the current simulation step...
Definition: PxSimulationStatistics.h:145