Kick off terrain models to pipeline compilation thread the moment they are made.

This commit is contained in:
Skyth 2024-11-26 20:22:09 +03:00
parent f356aa665a
commit 5838ef224f

View file

@ -4676,7 +4676,7 @@ static void ModelConsumerThread()
bool ready = false; bool ready = false;
if (pendingModel->m_pVftable.ptr == TERRAIN_MODEL_DATA_VFTABLE) if (pendingModel->m_pVftable.ptr == TERRAIN_MODEL_DATA_VFTABLE)
ready = CheckMadeAll(*reinterpret_cast<Hedgehog::Mirage::CTerrainModelData*>(pendingModel.get())); ready = pendingModel->IsMadeOne(); // Terrain groups will already have all references made by the time they are created
else else
ready = CheckMadeAll(*reinterpret_cast<Hedgehog::Mirage::CModelData*>(pendingModel.get())); ready = CheckMadeAll(*reinterpret_cast<Hedgehog::Mirage::CModelData*>(pendingModel.get()));