Skip to content

Commit

Permalink
Add extra clarification on Timer.wantedFPS
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanrishatum authored Feb 20, 2023
1 parent b9ca9fd commit ee45817
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hxd/Timer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ class Timer {
/**
The FPS on which "tmod" have values are based on.
Can be freely configured if your gameplay runs at a different speed.
Keep in mind this does NOT control the FPS your game runs at, as that is controlled by `hxd.Window.vsync` option.
As mentioned above it only affects the `tmod` value.
I.e. for a `wantedFPS` of 60, with vsync on and game running at full speed on 60hz monitor, `tmod` would be close to 1,
but on 120hz monitor it would be around 0.5.
Default : 60
**/
public static var wantedFPS = 60.;
Expand Down

0 comments on commit ee45817

Please sign in to comment.