Reduce texture memory usage in OpenMW

This commit is contained in:
scrawl 2015-05-02 19:36:36 +02:00
parent d772da3720
commit 1a5407af98
3 changed files with 14 additions and 2 deletions

View file

@ -17,6 +17,7 @@
#include <components/vfs/registerarchives.hpp>
#include <components/resource/resourcesystem.hpp>
#include <components/resource/texturemanager.hpp>
#include <components/compiler/extensions0.hpp>
@ -307,6 +308,7 @@ void OMW::Engine::prepareEngine (Settings::Manager & settings)
VFS::registerArchives(mVFS.get(), mFileCollections, mArchives, true);
mResourceSystem.reset(new Resource::ResourceSystem(mVFS.get()));
mResourceSystem->getTextureManager()->setUnRefImageDataAfterApply(true);
// Create input and UI first to set up a bootstrapping environment for
// showing a loading screen and keeping the window responsive while doing so