Optimization in NarrowPhaseInfoBatch

This commit is contained in:
Daniel Chappuis 2020-10-14 18:30:21 +02:00
parent 79c42fa36e
commit 9be56213e0

View File

@ -76,7 +76,7 @@ void NarrowPhaseInfoBatch::clear() {
// allocated in the next frame at a possibly different location in memory (remember that the
// location of the allocated memory of a single frame allocator might change between two frames)
mCachedCapacity = narrowPhaseInfos.size();
mCachedCapacity = narrowPhaseInfos.capacity();
narrowPhaseInfos.clear(true);
}