From ed871db1f34d00114d0fbc920d5e977cbde6dd2c Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Mon, 11 Jul 2016 19:16:47 +0800 Subject: [PATCH] use regular images in grid deck view i did search for psp-2000 and it has 64mb ram vs psp-1000 32mb ram. use lowres images for psp to be safe. --- projects/mtg/include/WResourceManagerImpl.h | 2 +- projects/mtg/src/GridDeckView.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/mtg/include/WResourceManagerImpl.h b/projects/mtg/include/WResourceManagerImpl.h index e9d9c8f4f..426e479db 100644 --- a/projects/mtg/include/WResourceManagerImpl.h +++ b/projects/mtg/include/WResourceManagerImpl.h @@ -10,7 +10,7 @@ #include "JLogger.h" #include -#define HUGE_CACHE_LIMIT 20000000 // Size of the cache for Windows and Linux (in bytes) +#define HUGE_CACHE_LIMIT 28000000 // Size of the cache for Windows and Linux (in bytes) - old value is 20mb increased to 28mb #define SAMPLES_CACHE_SIZE 1500000 // Size in bytes of the cached samples #define PSI_CACHE_SIZE 500000 // Size in bytes of the cached particles #define TEXTURES_CACHE_MINSIZE 2000000 // Minimum size of the cache on the PSP. The program should complain if the cache ever gets smaller than this diff --git a/projects/mtg/src/GridDeckView.cpp b/projects/mtg/src/GridDeckView.cpp index cfe750448..8b0109d50 100644 --- a/projects/mtg/src/GridDeckView.cpp +++ b/projects/mtg/src/GridDeckView.cpp @@ -123,9 +123,11 @@ void GridDeckView::Render() { if (WResourceManager::Instance()->IsThreaded()) { - WResourceManager::Instance()->RetrieveCard(mCards[i].card, RETRIEVE_THUMB); + //WResourceManager::Instance()->RetrieveCard(mCards[i].card, RETRIEVE_THUMB); + WResourceManager::Instance()->RetrieveCard(mCards[i].card, RETRIEVE_NORMAL); } - renderCard(i, 255, true); + //renderCard(i, 255, true); + renderCard(i, 255, false);//for psp, use lowres images if you can. } else {