This commit is contained in:
Yoshman29
2023-04-22 02:52:02 +02:00
parent b667b160a6
commit e9bae066a1
2 changed files with 2 additions and 14 deletions
File diff suppressed because one or more lines are too long
+1 -13
View File
@@ -7,7 +7,7 @@ class FunkinGame extends FlxGame {
public override function switchState() {
super.switchState();
// draw once to put all images in gpu then put the last update time to now to prevent lag spikes or whatever
draw();
draw();
_total = ticks = getTicks();
skipNextTickUpdate = true;
}
@@ -17,16 +17,4 @@ class FunkinGame extends FlxGame {
_total = ticks = getTicks();
super.onEnterFrame(t);
}
public override function draw() {
MemoryUtil.askDisable();
super.draw();
MemoryUtil.askEnable();
}
public override function update() {
MemoryUtil.askDisable();
super.update();
MemoryUtil.askEnable();
}
}