- Speed improvements to the filesystem (partial fix for issue 767)

- minor speed improvement in the shop (removed a locked texture loading that wasn't necessary)
This commit is contained in:
wagic.the.homebrew
2011-12-13 15:14:47 +00:00
parent 54a2f949b7
commit 2e3331a0c0
7 changed files with 70 additions and 52 deletions
-19
View File
@@ -52,8 +52,6 @@ GameStateShop::GameStateShop(GameApp* parent) :
GameState(parent, "shop")
{
menu = NULL;
for (int i = 0; i < 8; i++)
altThumb[i] = NULL;
boosterDisplay = NULL;
taskList = NULL;
srcCards = NULL;
@@ -131,16 +129,6 @@ void GameStateShop::Start()
bigDisplay->setY(135);
}
//alternateRender doesn't lock, so lock our thumbnails for hgeDistort.
altThumb[0] = WResourceManager::Instance()->RetrieveTexture("artifact_thumb.jpg", RETRIEVE_LOCK);
altThumb[1] = WResourceManager::Instance()->RetrieveTexture("green_thumb.jpg", RETRIEVE_LOCK);
altThumb[2] = WResourceManager::Instance()->RetrieveTexture("blue_thumb.jpg", RETRIEVE_LOCK);
altThumb[3] = WResourceManager::Instance()->RetrieveTexture("red_thumb.jpg", RETRIEVE_LOCK);
altThumb[4] = WResourceManager::Instance()->RetrieveTexture("black_thumb.jpg", RETRIEVE_LOCK);
altThumb[5] = WResourceManager::Instance()->RetrieveTexture("white_thumb.jpg", RETRIEVE_LOCK);
altThumb[6] = WResourceManager::Instance()->RetrieveTexture("land_thumb.jpg", RETRIEVE_LOCK);
altThumb[7] = WResourceManager::Instance()->RetrieveTexture("gold_thumb.jpg", RETRIEVE_LOCK);
for (int i = 0; i < 8; ++i)
{
std::ostringstream stream;
@@ -441,13 +429,6 @@ void GameStateShop::End()
SAFE_DELETE(packlist);
deleteDisplay();
//Release alternate thumbnails.
for (int i = 0; i < 8; i++)
{
WResourceManager::Instance()->Release(altThumb[i]);
altThumb[i] = NULL;
}
SAFE_DELETE(menu);
SAFE_DELETE(taskList);
}