| 520 | } |
| 521 | |
| 522 | BackgroundLoader::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 | |
| 541 | BackgroundLoader::~BackgroundLoader() |
| 542 | { |