This commit is contained in:
hedara90 2026-03-21 21:55:12 +01:00 committed by GitHub
commit 4f5e71d692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1000,15 +1000,6 @@ static void Cmd_waitforvisualfinish(void)
{
sBattleAnimScriptPtr++;
sAnimFramesToWait = 0;
// Assets can be safely unloaded at the end of waitforvisualfinish
// since it's guaranteed that nothing is currently using the assets
// by definition here.
// Only palettes are unloaded since that's what's usually hitting limits
// and is very quick to load again if needed.
// Unloading tile allocation was tested, but that did measurably increase
// the time it took to run animation tests
UnloadAllSpritePalettes();
}
else
{