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(); A.remove();
} }
} }
//save RAM
ImageCache.unloadCardTextures(true); ImageCache.unloadCardTextures(true);
Forge.switchToLast(); Forge.switchToLast();
} }

View File

@@ -337,7 +337,7 @@ public class ImageCache {
return; return;
//get latest images from syncQ //get latest images from syncQ
Set<String> newQ = Sets.newHashSet(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); Set<String> toUnload = Sets.difference(cardsLoaded, newQ);
//unload from assetmanager to save RAM //unload from assetmanager to save RAM
try { try {