diff options
author | Matthew Hoops | 2010-11-19 21:25:36 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-11-19 21:25:36 +0000 |
commit | 7fb352e38a8dcfb8a980c60d15b071ad1a427386 (patch) | |
tree | 4970ac0fec0bdce750a85e7a30dbeefa39c6bd61 /engines/mohawk/myst.cpp | |
parent | 199a1c761960f1928d8ce80d607f6eedadc67957 (diff) | |
download | scummvm-rg350-7fb352e38a8dcfb8a980c60d15b071ad1a427386.tar.gz scummvm-rg350-7fb352e38a8dcfb8a980c60d15b071ad1a427386.tar.bz2 scummvm-rg350-7fb352e38a8dcfb8a980c60d15b071ad1a427386.zip |
MOHAWK: Implement an image cache system
This should greatly improve the performance in Myst (especially Myst ME, which uses the slow JPEG decoder). This should also slightly improve the Riven performance; the sliders now work a bit better.
svn-id: r54388
Diffstat (limited to 'engines/mohawk/myst.cpp')
-rw-r--r-- | engines/mohawk/myst.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp index 9f822eb012..dd5d045fc6 100644 --- a/engines/mohawk/myst.cpp +++ b/engines/mohawk/myst.cpp @@ -367,7 +367,9 @@ void MohawkEngine_Myst::changeToStack(uint16 stack) { _runExitScript = false; + // Clear the resource cache and the image cache _cache.clear(); + _gfx->clearCache(); } void MohawkEngine_Myst::changeToCard(uint16 card) { @@ -385,7 +387,9 @@ void MohawkEngine_Myst::changeToCard(uint16 card) { unloadCard(); + // Clear the resource cache and image cache _cache.clear(); + _gfx->clearCache(); _curCard = card; |