mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 12:09:41 +00:00
Preload terrain even when cell preloading is disabled
This commit is contained in:
parent
9eed7fa6f5
commit
86e75f0987
1 changed files with 13 additions and 13 deletions
|
@ -209,14 +209,11 @@ namespace MWWorld
|
||||||
|
|
||||||
void Scene::update (float duration, bool paused)
|
void Scene::update (float duration, bool paused)
|
||||||
{
|
{
|
||||||
if (mPreloadEnabled)
|
mPreloadTimer += duration;
|
||||||
|
if (mPreloadTimer > 0.1f)
|
||||||
{
|
{
|
||||||
mPreloadTimer += duration;
|
preloadCells(0.1f);
|
||||||
if (mPreloadTimer > 0.1f)
|
mPreloadTimer = 0.f;
|
||||||
{
|
|
||||||
preloadCells(0.1f);
|
|
||||||
mPreloadTimer = 0.f;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mRendering.update (duration, paused);
|
mRendering.update (duration, paused);
|
||||||
|
@ -704,12 +701,15 @@ namespace MWWorld
|
||||||
|
|
||||||
mLastPlayerPos = playerPos;
|
mLastPlayerPos = playerPos;
|
||||||
|
|
||||||
if (mPreloadDoors)
|
if (mPreloadEnabled)
|
||||||
preloadTeleportDoorDestinations(playerPos, predictedPos, exteriorPositions);
|
{
|
||||||
if (mPreloadExteriorGrid)
|
if (mPreloadDoors)
|
||||||
preloadExteriorGrid(playerPos, predictedPos);
|
preloadTeleportDoorDestinations(playerPos, predictedPos, exteriorPositions);
|
||||||
if (mPreloadFastTravel)
|
if (mPreloadExteriorGrid)
|
||||||
preloadFastTravelDestinations(playerPos, predictedPos);
|
preloadExteriorGrid(playerPos, predictedPos);
|
||||||
|
if (mPreloadFastTravel)
|
||||||
|
preloadFastTravelDestinations(playerPos, predictedPos);
|
||||||
|
}
|
||||||
|
|
||||||
mPreloader->setTerrainPreloadPositions(exteriorPositions);
|
mPreloader->setTerrainPreloadPositions(exteriorPositions);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue