diff options
author | Travis Howell | 2009-06-03 06:34:39 +0000 |
---|---|---|
committer | Travis Howell | 2009-06-03 06:34:39 +0000 |
commit | ad09b501683346b602af708a420c2c1c5c72871b (patch) | |
tree | a054309da9ca283f4712add00c8e2e02c288f2f0 | |
parent | ba48060b5f856fed6e2b8d6e899a8b591e0ee3c0 (diff) | |
download | scummvm-rg350-ad09b501683346b602af708a420c2c1c5c72871b.tar.gz scummvm-rg350-ad09b501683346b602af708a420c2c1c5c72871b.tar.bz2 scummvm-rg350-ad09b501683346b602af708a420c2c1c5c72871b.zip |
Increase maxHeapThreshold for 16bit color HE games, due to larger resource sizes been used.
svn-id: r41134
-rw-r--r-- | engines/scumm/scumm.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index de4f9c7bd7..cbfa720e79 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -1181,7 +1181,10 @@ void ScummEngine::setupScumm() { int maxHeapThreshold = -1; - if (_game.features & GF_NEW_COSTUMES) { + if (_game.features & GF_16BIT_COLOR) { + // 16Bit color games require double the memory, due to increased resource sizes. + maxHeapThreshold = 12 * 1024 * 1024; + } else if (_game.features & GF_NEW_COSTUMES) { // Since the new costumes are very big, we increase the heap limit, to avoid having // to constantly reload stuff from the data files. maxHeapThreshold = 6 * 1024 * 1024; |