mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix fps not matching tps
This commit is contained in:
parent
c5a90673b9
commit
a2e2b4e211
2 changed files with 2 additions and 2 deletions
|
|
@ -175,7 +175,7 @@ class Main extends hxd.App {
|
||||||
#if hl
|
#if hl
|
||||||
static var dtAccumulator;
|
static var dtAccumulator;
|
||||||
dtAccumulator += updateDT;
|
dtAccumulator += updateDT;
|
||||||
if (Settings.optionsSettings.fpsLimit <= 0) {
|
if (Settings.optionsSettings.fpsLimit <= 0 || Settings.optionsSettings.vsync) {
|
||||||
e.driver.present();
|
e.driver.present();
|
||||||
} else {
|
} else {
|
||||||
if (dtAccumulator >= 1.0 / Settings.optionsSettings.fpsLimit) {
|
if (dtAccumulator >= 1.0 / Settings.optionsSettings.fpsLimit) {
|
||||||
|
|
|
||||||
|
|
@ -1177,7 +1177,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