- Manual cache cleanup in the menu to help a bit with issue 693. This is unfortunately not enough, we are dealing with ram fragmentation problems here :(

This commit is contained in:
wagic.the.homebrew
2011-07-10 13:51:39 +00:00
parent bf4e0d8908
commit 3148a25f3a
5 changed files with 16 additions and 1 deletions

View File

@@ -133,6 +133,10 @@ void GameStateMenu::Start()
hasChosenGameType = false;
mParent->gameType = GAME_TYPE_CLASSIC;
//Manual clean up of some cache Data. Ideally those should clean themselves up, so this is kind of a hack for now
JFileSystem::GetInstance()->clearZipCache();
WResourceManager::Instance()->ClearUnlocked();
bgTexture = WResourceManager::Instance()->RetrieveTexture("menutitle.png", RETRIEVE_LOCK);
mBg = WResourceManager::Instance()->RetrieveQuad("menutitle.png", 0, 0, 256, 166); // Create background quad for rendering.