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

Method growDirtyList

physx/source/scenequery/src/SqSceneQueryManager.cpp:166–178  ·  view source on GitHub ↗

PT: TODO: re-inline this

Source from the content-addressed store, hash-verified

164
165// PT: TODO: re-inline this
166void PrunerExt::growDirtyList(PrunerHandle handle)
167{
168 // pruners must either provide indices in order or reuse existing indices, so this 'if' is enough to ensure we have space for the new handle
169 // PT: TODO: fix this. There is just no need for any of it. The pruning pool itself could support the feature for free, similar to what we do
170 // in MBP. There would be no need for the bitmap or the dirty list array. However doing this through the virtual interface would be clumsy,
171 // adding the cost of virtual calls for very cheap & simple operations. It would be a lot easier to drop it and go back to what we had before.
172
173 Cm::BitMap& dirtyMap = mDirtyMap;
174 if(dirtyMap.size() <= handle)
175 dirtyMap.resize(PxMax<PxU32>(dirtyMap.size() * 2, 1024));
176 PX_ASSERT(handle<dirtyMap.size());
177 dirtyMap.reset(handle);
178}
179
180///////////////////////////////////////////////////////////////////////////////
181

Callers 1

addPrunerShapeMethod · 0.80

Calls 3

sizeMethod · 0.45
resizeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected