lwjgl3 icon indicating copy to clipboard operation
lwjgl3 copied to clipboard

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

Open TCreutzenberg opened this issue 1 year ago • 0 comments

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!

TCreutzenberg avatar Aug 09 '24 20:08 TCreutzenberg