1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-11-28 15:26:12 +00:00

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; orangeBackShit.visible = true;
alsoOrangeLOL.visible = true; alsoOrangeLOL.visible = true;
grpTxtScrolls.visible = true; grpTxtScrolls.visible = true;
// render optimisation
_parentState.persistentDraw = false;
}); });
generateSongList(null, false); generateSongList(null, false);
@ -985,6 +988,8 @@ class FreeplayState extends MusicBeatSubState
{ {
clearDaCache(daSong.songName); 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 function changeDiff(change:Int = 0, force:Bool = false):Void