Skip to content

Commit a2e2b4e

Browse files
committed
fix fps not matching tps
1 parent c5a9067 commit a2e2b4e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Main.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class Main extends hxd.App {
175175
#if hl
176176
static var dtAccumulator;
177177
dtAccumulator += updateDT;
178-
if (Settings.optionsSettings.fpsLimit <= 0) {
178+
if (Settings.optionsSettings.fpsLimit <= 0 || Settings.optionsSettings.vsync) {
179179
e.driver.present();
180180
} else {
181181
if (dtAccumulator >= 1.0 / Settings.optionsSettings.fpsLimit) {

src/gui/PlayGui.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ class PlayGui {
11771177
this.powerupImageScene.setElapsedTime(timeState.dt);
11781178

11791179
if (this.fpsMeter != null) {
1180-
this.fpsMeter.text.text = '${Math.floor(ProfilerUI.instance.fps)} ${Settings.optionsSettings.vsync ? "T" : "F"}PS';
1180+
this.fpsMeter.text.text = '${Math.floor(ProfilerUI.instance.fps)} FPS';
11811181
}
11821182
this.updateMiddleMessages(timeState.dt);
11831183
if (Net.isMP) {

0 commit comments

Comments
 (0)