We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09a28c4 commit 9fd1814Copy full SHA for 9fd1814
source/states/PlayState.hx
@@ -6576,6 +6576,9 @@ class PlayState extends MusicBeatState
6576
instance = null;
6577
super.destroy();
6578
endingSong = true;
6579
+
6580
+ yutautil.MemoryHelper.clearMemoryStored();
6581
6582
}
6583
6584
var lastStepHit:Int = -1;
source/yutautil/MemoryHelper.hx
@@ -57,4 +57,12 @@ class MemoryHelper {
57
clearObject(object);
58
59
60
61
+ public static function clearMemoryStored():Void {
62
+ cpp.vm.Gc.compact();
63
+ cpp.vm.Gc.run(false);
64
+ cpp.vm.Gc.run(true);
65
+ trace("Memory cleared");
66
+ }
67
68
0 commit comments