Adds cache for autogen sprites to reduce lag when loading sprites

This commit is contained in:
infinitefusion
2023-11-23 19:25:28 -05:00
parent cbe71d8530
commit 1af9d853cb
8 changed files with 30 additions and 6 deletions

View File

@@ -412,6 +412,7 @@ class PokemonLoadScreen
Game.load(@save_data)
$game_switches[SWITCH_V5_1] = true
$PokemonGlobal.alt_sprite_substitutions = {} if !$PokemonGlobal.alt_sprite_substitutions
$PokemonGlobal.autogen_sprites_cache = {}
return
when cmd_new_game
@scene.pbEndScene