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

Method preallocate

physx/source/scenequery/src/SqPruningPool.cpp:93–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void PruningPool::preallocate(PxU32 newCapacity)
94{
95 if(newCapacity>mMaxNbObjects)
96 resize(newCapacity);
97}
98
99PxU32 PruningPool::addObjects(PrunerHandle* results, const PxBounds3* bounds, const PrunerPayload* payload, PxU32 count)
100{

Callers 3

processBatchMethod · 0.45
IncrementalAABBPrunerMethod · 0.45
BVHCompoundPrunerMethod · 0.45

Calls 1

resizeFunction · 0.85

Tested by

no test coverage detected