Preload terrain even when cell preloading is disabled

pull/185/head
scrawl 8 years ago
parent 9eed7fa6f5
commit 86e75f0987

@ -208,8 +208,6 @@ namespace MWWorld
} }
void Scene::update (float duration, bool paused) void Scene::update (float duration, bool paused)
{
if (mPreloadEnabled)
{ {
mPreloadTimer += duration; mPreloadTimer += duration;
if (mPreloadTimer > 0.1f) if (mPreloadTimer > 0.1f)
@ -217,7 +215,6 @@ namespace MWWorld
preloadCells(0.1f); preloadCells(0.1f);
mPreloadTimer = 0.f; mPreloadTimer = 0.f;
} }
}
mRendering.update (duration, paused); mRendering.update (duration, paused);
@ -704,12 +701,15 @@ namespace MWWorld
mLastPlayerPos = playerPos; mLastPlayerPos = playerPos;
if (mPreloadEnabled)
{
if (mPreloadDoors) if (mPreloadDoors)
preloadTeleportDoorDestinations(playerPos, predictedPos, exteriorPositions); preloadTeleportDoorDestinations(playerPos, predictedPos, exteriorPositions);
if (mPreloadExteriorGrid) if (mPreloadExteriorGrid)
preloadExteriorGrid(playerPos, predictedPos); preloadExteriorGrid(playerPos, predictedPos);
if (mPreloadFastTravel) if (mPreloadFastTravel)
preloadFastTravelDestinations(playerPos, predictedPos); preloadFastTravelDestinations(playerPos, predictedPos);
}
mPreloader->setTerrainPreloadPositions(exteriorPositions); mPreloader->setTerrainPreloadPositions(exteriorPositions);
} }

Loading…
Cancel
Save