14 #ifndef PX_SIMULATION_STATISTICS
15 #define PX_SIMULATION_STATISTICS
171 if (type != eVOLUME_COUNT)
172 return nbBroadPhaseAdds[type];
190 if (type != eVOLUME_COUNT)
191 return nbBroadPhaseRemoves[type];
223 case eDISCRETE_CONTACT_PAIRS:
224 return nbDiscreteContactPairs[g0][g1];
227 return nbCCDPairs[g0][g1];
229 case eMODIFIED_CONTACT_PAIRS:
230 return nbModifiedContactPairs[g0][g1];
233 return nbTriggerPairs[g0][g1];
243 for(
PxU32 i=0; i < eVOLUME_COUNT; i++)
245 nbBroadPhaseAdds[i] = 0;
246 nbBroadPhaseRemoves[i] = 0;
253 nbDiscreteContactPairs[i][j] = 0;
254 nbModifiedContactPairs[i][j] = 0;
255 nbCCDPairs[i][j] = 0;
256 nbTriggerPairs[i][j] = 0;
265 totalDiscreteContactPairsAnyShape = 0;
267 nbActiveConstraints = 0;
268 nbActiveDynamicBodies = 0;
269 nbActiveKinematicBodies = 0;
272 compressedContactSize = 0;
273 requiredContactConstraintMemory = 0;
274 peakConstraintMemory = 0;
276 nbAxisSolverConstraints = 0;
278 particlesGpuMeshCacheSize = 0;
279 particlesGpuMeshCacheUsed = 0;
280 particlesGpuMeshCacheHitrate = 0.0f;
288 PxU32 nbBroadPhaseAdds[eVOLUME_COUNT];
289 PxU32 nbBroadPhaseRemoves[eVOLUME_COUNT];