freeplay optimization

This commit is contained in:
rich 2024-05-14 04:20:23 +04:00 committed by GitHub
parent 34a6e16385
commit 3810662f9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -527,6 +527,9 @@ class FreeplayState extends MusicBeatSubState
orangeBackShit.visible = true;
alsoOrangeLOL.visible = true;
grpTxtScrolls.visible = true;
// render optimisation
_parentState.persistentDraw = false;
});
generateSongList(null, false);
@ -985,6 +988,8 @@ class FreeplayState extends MusicBeatSubState
{
clearDaCache(daSong.songName);
}
// remove and destroy freeplay camera
FlxG.cameras.remove(FlxG.cameras.list[FlxG.cameras.list.length - 1]);
}
function changeDiff(change:Int = 0, force:Bool = false):Void