29#ifndef PX_SIMULATION_STATISTICS_H
30#define PX_SIMULATION_STATISTICS_H
35#include "foundation/PxAssert.h"
36#include "PxPhysXConfig.h"
37#include "geometry/PxGeometry.h"
176 return nbBroadPhaseAdds;
186 return nbBroadPhaseRemoves;
207 "Invalid pairType in PxSimulationStatistics::getRbPairStats");
219 nbPairs = nbDiscreteContactPairs[g0][g1];
222 nbPairs = nbCCDPairs[g0][g1];
225 nbPairs = nbModifiedContactPairs[g0][g1];
228 nbPairs = nbTriggerPairs[g0][g1];
417 nbBroadPhaseAdds = 0;
418 nbBroadPhaseRemoves = 0;
424 nbDiscreteContactPairs[i][j] = 0;
425 nbModifiedContactPairs[i][j] = 0;
426 nbCCDPairs[i][j] = 0;
427 nbTriggerPairs[i][j] = 0;
442 PxU32 nbBroadPhaseAdds;
443 PxU32 nbBroadPhaseRemoves;
Class used to retrieve statistics for a simulation step.
Definition PxSimulationStatistics.h:50
PxU64 gpuMemHeapSoftBodies
GPU device heap memory used for shared buffers in the FEM-based soft body pipeline in bytes.
Definition PxSimulationStatistics.h:358
PxU32 requiredContactConstraintMemory
The total required size (in bytes) of the contact constraints in the current simulation step.
Definition PxSimulationStatistics.h:161
PxU64 gpuMemHeapSimulationFEMCloth
GPU device heap memory used for FEM-cloth in the simulation pipeline in bytes.
Definition PxSimulationStatistics.h:343
PxU32 nbDiscreteContactPairsWithCacheHits
Total number of (non CCD) pairs for which contacts are successfully cached (<=nbDiscreteContactPairsT...
Definition PxSimulationStatistics.h:243
PxU64 gpuMemSoftBodies
GPU device memory in bytes allocated for FEM-based soft body state accessible through API.
Definition PxSimulationStatistics.h:283
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:203
PxU32 peakConstraintMemory
The peak amount of memory (in bytes) that was allocated for constraints (this includes joints) in the...
Definition PxSimulationStatistics.h:166
PxU32 nbPartitions
Number of partitions used by the solver this frame.
Definition PxSimulationStatistics.h:273
PxU32 nbDynamicBodies
Number of dynamic bodies for the current simulation step.
Definition PxSimulationStatistics.h:122
PxU64 gpuMemHeapNarrowPhase
GPU device heap memory used for narrow phase in bytes.
Definition PxSimulationStatistics.h:308
PxU64 gpuMemHeap
GPU device memory in bytes allocated for internal heap allocation.
Definition PxSimulationStatistics.h:298
PxU64 gpuMemHeapSimulationHairSystem
GPU device heap memory used for hairsystem in the simulation pipeline in bytes.
Definition PxSimulationStatistics.h:348
PxU32 compressedContactSize
The size (in bytes) of the compressed contact stream in the current simulation step.
Definition PxSimulationStatistics.h:156
PxU32 nbNewPairs
Number of new pairs found by BP this frame.
Definition PxSimulationStatistics.h:253
RbPairStatsType
Different types of rigid body collision pair statistics.
Definition PxSimulationStatistics.h:58
@ eMODIFIED_CONTACT_PAIRS
Shape pairs processed with user contact modification enabled for the current simulation step.
Definition PxSimulationStatistics.h:79
@ eTRIGGER_PAIRS
Trigger shape pairs processed for the current simulation step.
Definition PxSimulationStatistics.h:86
@ eCCD_PAIRS
Shape pairs processed as swept integration pairs for the current simulation step.
Definition PxSimulationStatistics.h:72
@ eDISCRETE_CONTACT_PAIRS
Shape pairs processed as discrete contact pairs for the current simulation step.
Definition PxSimulationStatistics.h:62
PxU32 nbActiveKinematicBodies
Number of active kinematic bodies for the current simulation step.
Definition PxSimulationStatistics.h:109
PxU32 nbStaticBodies
Number of static bodies for the current simulation step.
Definition PxSimulationStatistics.h:114
PxU64 gpuMemHeapSimulationParticles
GPU device heap memory used for particles in the simulation pipeline in bytes.
Definition PxSimulationStatistics.h:333
PxU64 gpuMemHeapBroadPhase
GPU device heap memory used for broad phase in bytes.
Definition PxSimulationStatistics.h:303
PxU32 nbActiveConstraints
Number of active PxConstraint objects (joints etc.) for the current simulation step.
Definition PxSimulationStatistics.h:94
PxU64 gpuMemHeapHairSystems
GPU device heap memory used for shared buffers in the hairsystem pipeline in bytes.
Definition PxSimulationStatistics.h:368
PxU32 nbAxisSolverConstraints
The number of 1D axis constraints(joints+contact) present in the current simulation step.
Definition PxSimulationStatistics.h:151
PxU64 gpuMemHeapFEMCloths
GPU device heap memory used for shared buffers in the FEM-based cloth pipeline in bytes.
Definition PxSimulationStatistics.h:363
PxU32 nbLostTouches
Number of lost touches from NP this frame.
Definition PxSimulationStatistics.h:268
PX_FORCE_INLINE PxU32 getNbBroadPhaseRemoves() const
Get number of broadphase volumes removed for the current simulation step.
Definition PxSimulationStatistics.h:184
PxU64 gpuMemHeapSimulationArticulation
GPU device heap memory used for articulations in the simulation pipeline in bytes.
Definition PxSimulationStatistics.h:328
PxU32 nbActiveDynamicBodies
Number of active dynamic bodies for the current simulation step.
Definition PxSimulationStatistics.h:101
PxU32 nbLostPairs
Number of lost pairs from BP this frame.
Definition PxSimulationStatistics.h:258
PxU64 gpuMemHeapSimulation
GPU device heap memory used for simulation pipeline in bytes.
Definition PxSimulationStatistics.h:323
PxU32 nbArticulations
Number of articulations in the scene.
Definition PxSimulationStatistics.h:145
PxU32 nbShapes[PxGeometryType::eGEOMETRY_COUNT]
Number of shapes of each geometry type.
Definition PxSimulationStatistics.h:135
PxU64 gpuMemParticles
GPU device memory in bytes allocated for particle state accessible through API.
Definition PxSimulationStatistics.h:278
PxU64 gpuMemHeapSolver
GPU device heap memory used for solver in bytes.
Definition PxSimulationStatistics.h:313
PxU64 gpuMemHeapSimulationSoftBody
GPU device heap memory used for soft bodies in the simulation pipeline in bytes.
Definition PxSimulationStatistics.h:338
PxU32 nbDiscreteContactPairsTotal
Total number of (non CCD) pairs reaching narrow phase.
Definition PxSimulationStatistics.h:237
PxU64 gpuMemHeapParticles
GPU device heap memory used for shared buffers in the particles pipeline in bytes.
Definition PxSimulationStatistics.h:353
PxU32 nbNewTouches
Number of new touches found by NP this frame.
Definition PxSimulationStatistics.h:263
PxU64 gpuMemFEMCloths
GPU device memory in bytes allocated for FEM-based cloth state accessible through API.
Definition PxSimulationStatistics.h:288
PxU64 gpuMemHeapArticulation
GPU device heap memory used for articulations in bytes.
Definition PxSimulationStatistics.h:318
PxU64 gpuMemHeapOther
GPU device heap memory not covered by other stats in bytes.
Definition PxSimulationStatistics.h:373
PxU32 nbDiscreteContactPairsWithContacts
Total number of (non CCD) pairs for which at least 1 contact was generated (<=nbDiscreteContactPairsT...
Definition PxSimulationStatistics.h:248
PxU32 nbKinematicBodies
Number of kinematic bodies for the current simulation step.
Definition PxSimulationStatistics.h:129
PxU32 nbAggregates
Number of aggregates in the scene.
Definition PxSimulationStatistics.h:140
PX_FORCE_INLINE PxU32 getNbBroadPhaseAdds() const
Get number of broadphase volumes added for the current simulation step.
Definition PxSimulationStatistics.h:174
PxU64 gpuMemHairSystems
GPU device memory in bytes allocated for hairsystem state accessible through API.
Definition PxSimulationStatistics.h:293
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Enum
Definition PxGeometry.h:52
@ eGEOMETRY_COUNT
internal use only!
Definition PxGeometry.h:65