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

Method flushQueryUpdates

physx/source/physx/src/NpScene.cpp:2275–2290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2273}
2274
2275void NpScene::flushQueryUpdates()
2276{
2277 // DS: how do we profile const methods??????
2278 PX_PROFILE_ZONE("API.flushQueryUpdates", getContextId());
2279 NP_READ_CHECK(this);
2280 PX_SIMD_GUARD;
2281
2282 if (getSimulationStage() != Sc::SimulationStage::eCOMPLETE)
2283 {
2284 Ps::getFoundation().error(PxErrorCode::eDEBUG_WARNING, __FILE__, __LINE__,
2285 "PxScene::flushQueryUpdates(): This call is not allowed while the simulation is running. Call will be ignored");
2286 return;
2287 }
2288
2289 mSQManager.flushUpdates();
2290}
2291
2292/*
2293Replaces finishRun() with the addition of appropriate thread sync(pulled out of PhysicsThread())

Callers

nothing calls this directly

Calls 3

errorMethod · 0.80
flushUpdatesMethod · 0.80
getContextIdFunction · 0.50

Tested by

no test coverage detected