This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ATTEMPTING OPTIMISATION IDK HOW TO OPTIMISE AND IDK HOW TO CHECK MEMORY
- Loading branch information
1 parent
54f5fd8
commit d1775d1
Showing
7 changed files
with
80 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
package; | ||
import flixel.graphics.frames.FlxFramesCollection; | ||
|
||
import flixel.FlxG; | ||
import LuaClass; | ||
class Cache { | ||
public static var offsetData = new Map<String,String>(); | ||
public static var animData = new Map<String,String>(); | ||
public static var charFrames = new Map<String,FlxFramesCollection>(); | ||
public static var xmlData = new Map<String,String>(); | ||
|
||
public static function Clear(){ | ||
offsetData.clear(); | ||
animData.clear(); | ||
charFrames.clear(); | ||
xmlData.clear(); | ||
LuaStorage.objectProperties.clear(); | ||
trace("CLEARED CACHE!"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.