| 2456 | mBpThreadContextPool.push(*data); |
| 2457 | } |
| 2458 | void 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; |