Optimization in NarrowPhaseInfoBatch
This commit is contained in:
parent
79c42fa36e
commit
9be56213e0
|
@ -76,7 +76,7 @@ void NarrowPhaseInfoBatch::clear() {
|
||||||
// allocated in the next frame at a possibly different location in memory (remember that the
|
// 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)
|
// location of the allocated memory of a single frame allocator might change between two frames)
|
||||||
|
|
||||||
mCachedCapacity = narrowPhaseInfos.size();
|
mCachedCapacity = narrowPhaseInfos.capacity();
|
||||||
|
|
||||||
narrowPhaseInfos.clear(true);
|
narrowPhaseInfos.clear(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user