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

Method clearNotThreadSafe

physx/source/common/src/CmFlushPool.h:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 void clearNotThreadSafe(PxU32 spareChunkCount = sSpareChunkCount)
109 {
110 PX_UNUSED(spareChunkCount);
111
112 //release memory not used previously
113 PxU32 targetSize = mChunkIndex+sSpareChunkCount;
114 while (mChunks.size() > targetSize)
115 PX_FREE(mChunks.popBack());
116
117 mChunkIndex = 0;
118 mOffset = 0;
119 }
120
121 void resetNotThreadSafe()
122 {

Callers 1

syncEntireSceneMethod · 0.80

Calls 3

PX_UNUSEDFunction · 0.85
sizeMethod · 0.45
popBackMethod · 0.45

Tested by

no test coverage detected