mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Add settings for disabling the individual preloading types
This commit is contained in:
parent
10a3e270a3
commit
6806741d9b
3 changed files with 23 additions and 4 deletions
|
@ -457,6 +457,9 @@ namespace MWWorld
|
|||
, mCellLoadingThreshold(1024.f)
|
||||
, mPreloadDistance(Settings::Manager::getInt("preload distance", "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->setWorkQueue(mRendering.getWorkQueue());
|
||||
|
@ -631,9 +634,12 @@ namespace MWWorld
|
|||
|
||||
void Scene::preloadCells()
|
||||
{
|
||||
preloadTeleportDoorDestinations();
|
||||
preloadExteriorGrid();
|
||||
preloadFastTravelDestinations();
|
||||
if (mPreloadDoors)
|
||||
preloadTeleportDoorDestinations();
|
||||
if (mPreloadExteriorGrid)
|
||||
preloadExteriorGrid();
|
||||
if (mPreloadFastTravel)
|
||||
preloadFastTravelDestinations();
|
||||
}
|
||||
|
||||
void Scene::preloadTeleportDoorDestinations()
|
||||
|
|
|
@ -64,6 +64,10 @@ namespace MWWorld
|
|||
float mPreloadDistance;
|
||||
bool mPreloadEnabled;
|
||||
|
||||
bool mPreloadExteriorGrid;
|
||||
bool mPreloadDoors;
|
||||
bool mPreloadFastTravel;
|
||||
|
||||
void insertCell (CellStore &cell, bool rescale, Loading::Listener* loadingListener);
|
||||
|
||||
// Load and unload cells as necessary to create a cell grid with "X" and "Y" in the center
|
||||
|
|
|
@ -37,9 +37,18 @@ first person field of view = 55.0
|
|||
# dramatically affect performance, see documentation for details.
|
||||
exterior cell load distance = 1
|
||||
|
||||
# Preload cells in a background thread
|
||||
# Preload cells in a background thread. All settings starting with 'preload' have no effect unless this is enabled.
|
||||
preload enabled = true
|
||||
|
||||
# Preload adjacent cells when moving close to an exterior cell border.
|
||||
preload exterior grid = true
|
||||
|
||||
# Preload possible fast travel destinations.
|
||||
preload fast travel = true
|
||||
|
||||
# Preload the locations that doors lead to.
|
||||
preload doors = true
|
||||
|
||||
# Preloading distance threshold
|
||||
preload distance = 1000
|
||||
|
||||
|
|
Loading…
Reference in a new issue