mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 20:56:39 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									2f8be401cc
								
							
						
					
					
						commit
						4ac276b06c
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		|  | @ -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) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue