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

Method BackgroundLoader

physx/samples/samplelargeworld/ChunkLoader.cpp:522–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522BackgroundLoader::BackgroundLoader(SampleLargeWorld& sample, CoordType halfRange, CoordType terrainRange, PxF32 chunkWidth)
523 : mSampleLargeWorld(&sample)
524 , mPhysics(sample.getPhysics())
525 , mScene(sample.getActiveScene())
526 , mMaterial(sample.getDefaultMaterial())
527 , mHalfRange(halfRange)
528 , mTerrainRange(terrainRange)
529 , mChunkWidth(chunkWidth)
530{
531 mCurChunkId.id = 0;
532 mDiskIOTime = 0;
533 mPhyXStreamTime = 0;
534 mGraphicStreamTime = 0;
535
536 mLoaderThread = PX_NEW(Thread)(loaderThread, this, "LoaderThread");
537 mLoaderThread->start(0);
538 mSr = PxSerialization::createSerializationRegistry(mPhysics);
539}
540
541BackgroundLoader::~BackgroundLoader()
542{

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected