update comment

This commit is contained in:
Anthony Calosa
2022-07-30 11:19:16 +08:00
parent b318b74ab4
commit 2e0e287ead
2 changed files with 2 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ public class RewardScene extends UIScene {
A.remove();
}
}
//save RAM
ImageCache.unloadCardTextures(true);
Forge.switchToLast();
}

View File

@@ -337,7 +337,7 @@ public class ImageCache {
return;
//get latest images from syncQ
Set<String> newQ = Sets.newHashSet(syncQ);
//get removeAll images not in newQ (cardLists to unload)
//get all images not in newQ (cards to unload)
Set<String> toUnload = Sets.difference(cardsLoaded, newQ);
//unload from assetmanager to save RAM
try {