fix fps not matching tps

This commit is contained in:
RandomityGuy 2025-02-14 21:56:32 +05:30
parent c5a90673b9
commit a2e2b4e211
2 changed files with 2 additions and 2 deletions

View file

@ -175,7 +175,7 @@ class Main extends hxd.App {
#if hl
static var dtAccumulator;
dtAccumulator += updateDT;
if (Settings.optionsSettings.fpsLimit <= 0) {
if (Settings.optionsSettings.fpsLimit <= 0 || Settings.optionsSettings.vsync) {
e.driver.present();
} else {
if (dtAccumulator >= 1.0 / Settings.optionsSettings.fpsLimit) {

View file

@ -1177,7 +1177,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) {