aboutsummaryrefslogtreecommitdiff
path: root/resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'resource.cpp')
-rw-r--r--resource.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/resource.cpp b/resource.cpp
index c4451073c7..965ce97e3d 100644
--- a/resource.cpp
+++ b/resource.cpp
@@ -706,6 +706,7 @@ void Scumm::expireResources(uint32 size) {
byte flag;
byte best_counter;
int best_type, best_res;
+ uint32 oldAllocatedSize;
if (_expire_counter != 0xFF) {
_expire_counter = 0xFF;
@@ -715,6 +716,8 @@ void Scumm::expireResources(uint32 size) {
if (size + _allocatedSize < _maxHeapThreshold)
return;
+ oldAllocatedSize = _allocatedSize;
+
do {
best_type = 0;
best_counter = 2;
@@ -735,6 +738,8 @@ void Scumm::expireResources(uint32 size) {
break;
nukeResource(best_type, best_res);
} while (size + _allocatedSize > _minHeapThreshold);
+
+ debug(1, "Expired resources, mem %d -> %d", oldAllocatedSize, _allocatedSize);
}
void Scumm::freeResources() {