Skip to content

Commit 2f47cfe

Browse files
committed
Call me oppenhimer the way I be nuking things
1 parent 2a30c23 commit 2f47cfe

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

source/backend/Paths.hx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ class Paths
182182
}
183183
}
184184

185+
public static function nukeMemory(){
186+
freeGraphicsFromMemory();
187+
currentTrackedSounds.clear();
188+
}
189+
185190
/** returns a FlxRuntimeShader but with file names lol **/
186191
public static function getShader(fragFile:String = null, vertFile:String = null, version:Int = 120):FlxRuntimeShader
187192
{

source/states/LoadingState.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class LoadingState extends MusicBeatState
8989
#end
9090
override function create()
9191
{
92+
Paths.nukeMemory();
9293
persistentUpdate = true;
9394
barGroup = new FlxSpriteGroup();
9495
add(barGroup);

0 commit comments

Comments
 (0)