mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 13:11:42 +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) {
|
override function update(dt:Float) {
|
||||||
updateDT = dt;
|
|
||||||
super.update(dt);
|
super.update(dt);
|
||||||
if (loaded) {
|
if (loaded) {
|
||||||
ProfilerUI.begin();
|
ProfilerUI.begin();
|
||||||
|
|
@ -182,16 +179,7 @@ class Main extends hxd.App {
|
||||||
super.render(e);
|
super.render(e);
|
||||||
|
|
||||||
#if hl
|
#if hl
|
||||||
static var dtAccumulator;
|
e.driver.present();
|
||||||
dtAccumulator += updateDT;
|
|
||||||
if (Settings.optionsSettings.fpsLimit <= 0) {
|
|
||||||
e.driver.present();
|
|
||||||
} else {
|
|
||||||
if (dtAccumulator >= 1.0 / Settings.optionsSettings.fpsLimit) {
|
|
||||||
e.driver.present();
|
|
||||||
dtAccumulator = 0.0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1171,7 +1171,7 @@ class PlayGui {
|
||||||
this.powerupImageScene.setElapsedTime(timeState.dt);
|
this.powerupImageScene.setElapsedTime(timeState.dt);
|
||||||
|
|
||||||
if (this.fpsMeter != null) {
|
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);
|
this.updateMiddleMessages(timeState.dt);
|
||||||
if (Net.isMP) {
|
if (Net.isMP) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue