31 #ifndef PX_SIMULATION_STATISTICS 32 #define PX_SIMULATION_STATISTICS 178 return nbBroadPhaseAdds;
188 return nbBroadPhaseRemoves;
208 (pairType <= eTRIGGER_PAIRS),
209 "Invalid pairType in PxSimulationStatistics::getRbPairStats");
220 case eDISCRETE_CONTACT_PAIRS:
221 nbPairs = nbDiscreteContactPairs[g0][g1];
224 nbPairs = nbCCDPairs[g0][g1];
226 case eMODIFIED_CONTACT_PAIRS:
227 nbPairs = nbModifiedContactPairs[g0][g1];
230 nbPairs = nbTriggerPairs[g0][g1];
278 nbActiveConstraints (0),
279 nbActiveDynamicBodies (0),
280 nbActiveKinematicBodies (0),
283 nbKinematicBodies (0),
286 nbAxisSolverConstraints (0),
287 compressedContactSize (0),
288 requiredContactConstraintMemory (0),
289 peakConstraintMemory (0),
290 nbDiscreteContactPairsTotal (0),
291 nbDiscreteContactPairsWithCacheHits (0),
292 nbDiscreteContactPairsWithContacts (0),
299 nbBroadPhaseAdds = 0;
300 nbBroadPhaseRemoves = 0;
306 nbDiscreteContactPairs[i][j] = 0;
307 nbModifiedContactPairs[i][j] = 0;
308 nbCCDPairs[i][j] = 0;
309 nbTriggerPairs[i][j] = 0;
Definition: GuContactBuffer.h:37
PxU32 nbArticulations
Number of articulations in the scene.
Definition: PxSimulationStatistics.h:147
PxU32 compressedContactSize
The size (in bytes) of the compressed contact stream in the current simulation step.
Definition: PxSimulationStatistics.h:158
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:205
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:163
PX_FORCE_INLINE PxU32 getNbBroadPhaseRemoves() const
Get number of broadphase volumes removed for the current simulation step.
Definition: PxSimulationStatistics.h:186
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:176
#define PX_FORCE_INLINE
Definition: PxPreprocessor.h:351
PxU32 nbAggregates
Number of aggregates in the scene.
Definition: PxSimulationStatistics.h:142
PxU32 nbLostTouches
Number of lost touches from NP this frame.
Definition: PxSimulationStatistics.h:270
PxU32 nbDiscreteContactPairsWithCacheHits
Total number of (non CCD) pairs for which contacts are successfully cached (<=nbDiscreteContactPairsT...
Definition: PxSimulationStatistics.h:245
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:124
PxU32 nbKinematicBodies
Number of kinematic bodies for the current simulation step.
Definition: PxSimulationStatistics.h:131
PxU32 nbBroadPhaseRemoves
Definition: PxSimulationStatistics.h:325
PxU32 peakConstraintMemory
The peak amount of memory (in bytes) that was allocated for constraints (this includes joints) in the...
Definition: PxSimulationStatistics.h:168
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:255
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:265
PxU32 nbPartitions
Number of partitions used by the solver this frame.
Definition: PxSimulationStatistics.h:275
PxU32 nbDiscreteContactPairsTotal
Total number of (non CCD) pairs reaching narrow phase.
Definition: PxSimulationStatistics.h:239
Enum
Definition: PxGeometry.h:53
PxU32 nbBroadPhaseAdds
Definition: PxSimulationStatistics.h:324
RbPairStatsType
Different types of rigid body collision pair statistics.
Definition: PxSimulationStatistics.h:59
PxSimulationStatistics()
Definition: PxSimulationStatistics.h:277
PxU32 nbDiscreteContactPairsWithContacts
Total number of (non CCD) pairs for which at least 1 contact was generated (<=nbDiscreteContactPairsT...
Definition: PxSimulationStatistics.h:250
#define PX_ASSERT_WITH_MESSAGE(condition, message)
Definition: PxAssert.h:61
PxU32 nbActiveKinematicBodies
Number of active kinematic bodies for the current simulation step.
Definition: PxSimulationStatistics.h:111
#define PX_ASSERT(exp)
Definition: PxAssert.h:59
PxU32 nbLostPairs
Number of lost pairs from BP this frame.
Definition: PxSimulationStatistics.h:260
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:153