|
|
@ -457,6 +457,9 @@ namespace MWWorld
|
|
|
|
, mCellLoadingThreshold(1024.f)
|
|
|
|
, mCellLoadingThreshold(1024.f)
|
|
|
|
, mPreloadDistance(Settings::Manager::getInt("preload distance", "Cells"))
|
|
|
|
, mPreloadDistance(Settings::Manager::getInt("preload distance", "Cells"))
|
|
|
|
, mPreloadEnabled(Settings::Manager::getBool("preload enabled", "Cells"))
|
|
|
|
, mPreloadEnabled(Settings::Manager::getBool("preload enabled", "Cells"))
|
|
|
|
|
|
|
|
, mPreloadExteriorGrid(Settings::Manager::getBool("preload exterior grid", "Cells"))
|
|
|
|
|
|
|
|
, mPreloadDoors(Settings::Manager::getBool("preload doors", "Cells"))
|
|
|
|
|
|
|
|
, mPreloadFastTravel(Settings::Manager::getBool("preload fast travel", "Cells"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mPreloader.reset(new CellPreloader(rendering.getResourceSystem(), physics->getShapeManager()));
|
|
|
|
mPreloader.reset(new CellPreloader(rendering.getResourceSystem(), physics->getShapeManager()));
|
|
|
|
mPreloader->setWorkQueue(mRendering.getWorkQueue());
|
|
|
|
mPreloader->setWorkQueue(mRendering.getWorkQueue());
|
|
|
@ -631,9 +634,12 @@ namespace MWWorld
|
|
|
|
|
|
|
|
|
|
|
|
void Scene::preloadCells()
|
|
|
|
void Scene::preloadCells()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
preloadTeleportDoorDestinations();
|
|
|
|
if (mPreloadDoors)
|
|
|
|
preloadExteriorGrid();
|
|
|
|
preloadTeleportDoorDestinations();
|
|
|
|
preloadFastTravelDestinations();
|
|
|
|
if (mPreloadExteriorGrid)
|
|
|
|
|
|
|
|
preloadExteriorGrid();
|
|
|
|
|
|
|
|
if (mPreloadFastTravel)
|
|
|
|
|
|
|
|
preloadFastTravelDestinations();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Scene::preloadTeleportDoorDestinations()
|
|
|
|
void Scene::preloadTeleportDoorDestinations()
|
|
|
|