From 4ac276b06c3f9689de342926f0c6bbce5e3e23ea Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 29 Mar 2016 00:39:36 +0200 Subject: [PATCH] Update the resource cache every frame (Bug #3273) Not much of a point in limiting this to cell loadings, since the update is done from a background thread and should be fairly cheap anyway if there's nothing to unload. --- apps/openmw/mwworld/scene.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/openmw/mwworld/scene.cpp b/apps/openmw/mwworld/scene.cpp index c7ac757b2..392374753 100644 --- a/apps/openmw/mwworld/scene.cpp +++ b/apps/openmw/mwworld/scene.cpp @@ -204,6 +204,8 @@ namespace MWWorld } mRendering.update (duration, paused); + + mPreloader->updateCache(mRendering.getReferenceTime()); } void Scene::unloadCell (CellStoreCollection::iterator iter) @@ -421,8 +423,6 @@ namespace MWWorld if (changeEvent) mCellChanged = true; - - mPreloader->updateCache(mRendering.getReferenceTime()); } void Scene::changePlayerCell(CellStore *cell, const ESM::Position &pos, bool adjustPlayerPos) @@ -557,8 +557,6 @@ namespace MWWorld MWBase::Environment::get().getWindowManager()->fadeScreenIn(0.5); MWBase::Environment::get().getWindowManager()->changeCell(mCurrentCell); - - mPreloader->updateCache(mRendering.getReferenceTime()); } void Scene::changeToExteriorCell (const ESM::Position& position, bool adjustPlayerPos, bool changeEvent)