Skip to content

Commit

Permalink
fix fps not matching tps
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomityGuy committed Feb 14, 2025
1 parent c5a9067 commit a2e2b4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/gui/PlayGui.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a2e2b4e

Please sign in to comment.