- Fix Android compilation issues
- Added a "cachesize" option (not available from the menu, but can be manually edited in players/options.txt, for example cachesize=200 means 200MB of cache). The hardcoded cache on windows/linux is 20MB, which is not enough for Hi Res cards (60 is better, 200 is great)
This commit is contained in:
@@ -96,8 +96,6 @@ void GameApp::Create()
|
||||
//_CrtSetBreakAlloc(368);
|
||||
LOG("starting Game");
|
||||
|
||||
WResourceManager::Instance()->ResetCacheLimits();
|
||||
|
||||
string systemFolder = "Res/";
|
||||
string foldersRoot = "";
|
||||
|
||||
@@ -149,6 +147,11 @@ void GameApp::Create()
|
||||
LOG("options.reloadProfile()");
|
||||
options.reloadProfile();
|
||||
|
||||
|
||||
//Setup Cache before calling any gfx/sfx functions
|
||||
WResourceManager::Instance()->ResetCacheLimits();
|
||||
|
||||
|
||||
LOG("Checking for music files");
|
||||
//Test for Music files presence
|
||||
JFileSystem * jfs = JFileSystem::GetInstance();
|
||||
|
||||
Reference in New Issue
Block a user