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

Method resetBpCacheData

physx/source/lowlevelaabb/src/BpAABBManager.cpp:2458–2474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2456 mBpThreadContextPool.push(*data);
2457}
2458void AABBManager::resetBpCacheData()
2459{
2460 Ps::InlineArray<BpCacheData*, 16> bpCache;
2461 BpCacheData* entry = static_cast<BpCacheData*>(mBpThreadContextPool.pop());
2462 while (entry)
2463 {
2464 entry->reset();
2465 bpCache.pushBack(entry);
2466 entry = static_cast<BpCacheData*>(mBpThreadContextPool.pop());
2467 }
2468
2469 //Now reinsert back into queue...
2470 for (PxU32 i = 0; i < bpCache.size(); ++i)
2471 {
2472 mBpThreadContextPool.push(*bpCache[i]);
2473 }
2474}
2475
2476// PT: disabled this by default, since it bypasses all per-shape/per-actor visualization flags
2477//static const bool gVisualizeAggregateElems = false;

Callers

nothing calls this directly

Calls 5

popMethod · 0.45
resetMethod · 0.45
pushBackMethod · 0.45
sizeMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected