mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-12-29 03:12:16 +00:00
make compile
This commit is contained in:
parent
6f9769b6e7
commit
eec421cb40
2 changed files with 2 additions and 14 deletions
14
src/Main.hx
14
src/Main.hx
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue