make compile

This commit is contained in:
RandomityGuy 2025-02-14 21:59:13 +05:30
parent 6f9769b6e7
commit eec421cb40
2 changed files with 2 additions and 14 deletions

View file

@ -145,10 +145,7 @@ class Main extends hxd.App {
// });
}
static var updateDT:Float;
override function update(dt:Float) {
updateDT = dt;
super.update(dt);
if (loaded) {
ProfilerUI.begin();
@ -182,16 +179,7 @@ class Main extends hxd.App {
super.render(e);
#if hl
static var dtAccumulator;
dtAccumulator += updateDT;
if (Settings.optionsSettings.fpsLimit <= 0) {
e.driver.present();
} else {
if (dtAccumulator >= 1.0 / Settings.optionsSettings.fpsLimit) {
e.driver.present();
dtAccumulator = 0.0;
}
}
e.driver.present();
#end
}

View file

@ -1171,7 +1171,7 @@ class PlayGui {
this.powerupImageScene.setElapsedTime(timeState.dt);
if (this.fpsMeter != null) {
this.fpsMeter.text.text = '${Math.floor(ProfilerUI.instance.fps)} ${Settings.optionsSettings.vsync ? "T" : "F"}PS';
this.fpsMeter.text.text = '${Math.floor(ProfilerUI.instance.fps)} FPS';
}
this.updateMiddleMessages(timeState.dt);
if (Net.isMP) {