added limit threshold before clearing cache

This commit is contained in:
infinitefusion
2021-09-05 16:57:18 -04:00
parent 2c86a187af
commit ace5657d23
3 changed files with 24 additions and 14 deletions

View File

@@ -31,6 +31,9 @@ module RPG
return obj
end
def self.need_clearing()
return @cache.size >= 100
end
def self.load_bitmap(folder_name, filename, hue = 0)