Skip to content

Different speed gameplay #1161

Answered by AlmasB
jvondermarck asked this question in Q&A
Mar 30, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi, you can enable profiling via GameSettings object to see whether you have different results.

By default, FXGL relies on JavaFX to lock the frame rate, which in turn means the loop runs at the display refresh rate speed. So, for example, if you have a 120fps display, the game will run twice as fast. To change this behavior, you can lock the fps to 60, again via GameSettings.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jvondermarck
Comment options

@jvondermarck
Comment options

@AlmasB
Comment options

Answer selected by jvondermarck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants