Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra clarification on Timer.wantedFPS #1133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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