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

Why does GLFWVidMode#refreshRate() not round the refresh rate? #999

Closed
TCreutzenberg opened this issue Aug 9, 2024 · 1 comment
Closed

Comments

@TCreutzenberg
Copy link

TCreutzenberg commented Aug 9, 2024

Question

Hey,

I have a Monitor with a refresh rate of 59.951Hz.

When I try to retrieve the refresh rate of this monitor with (LWJGL 3.3.3)

GLFWVidMode videoMode = GLFW.glfwGetVideoMode(monitor);
int refreshRate = videoMode.refreshRate();

refreshRate is 59. Shouldn't it round the 59.951Hz and return 60?

If I set the fps of my application (game) to 59 I get a visible stutter on fast moving elements every second which I don't get with 60 fps...

Thank you very much in advance!

@Spasi
Copy link
Member

Spasi commented Sep 25, 2024

Hey @TCreutzenberg,

This is a known issue.

@Spasi Spasi closed this as completed Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants