Different speed gameplay #1161
-
Hi @AlmasB, a friend and I when we run the FXGL game, we have a different speed gameplay. It looks faster on my computer but on my friend the game looks running slower. Gameplay of my friend : https://www.youtube.com/shorts/ns6axLTgJyI We both have a really good computer so that's weird. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, you can enable profiling via 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 |
Beta Was this translation helpful? Give feedback.
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
.