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

Method markForUpdate

physx/source/scenequery/src/SqSceneQueryManager.cpp:286–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void SceneQueryManager::markForUpdate(PrunerCompoundId compoundId, PrunerData data)
287{
288 mPrunerNeedsUpdating = true;
289 const PxU32 index = getPrunerIndex(data);
290 const PrunerHandle handle = getPrunerHandle(data);
291
292 if(compoundId == INVALID_PRUNERHANDLE)
293 mPrunerExt[index].addToDirtyList(handle);
294 else
295 {
296 // A.B. As there can be static actors in the compounds and they could have moved,
297 // then for exmplae CCT does need to know that something might have changed (timeStamp check), so therefore the invalidateTimestamp() here
298 mPrunerExt[index].invalidateTimestamp();
299 mCompoundPrunerExt.addToDirtyList(compoundId, handle);
300 }
301}
302
303void SceneQueryManager::preallocate(PxU32 staticShapes, PxU32 dynamicShapes)
304{

Callers 2

updateSQMethod · 0.80

Calls 3

getPrunerIndexFunction · 0.85
invalidateTimestampMethod · 0.80
addToDirtyListMethod · 0.45

Tested by

no test coverage detected