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

@@ -3,7 +3,9 @@
#===============================================================================
def pbSceneStandby
$scene.disposeSpritesets if $scene && $scene.is_a?(Scene_Map)
RPG::Cache.clear
if RPG::Cache.need_clearing
RPG::Cache.clear
end
Graphics.frame_reset
yield
$scene.createSpritesets if $scene && $scene.is_a?(Scene_Map)