Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is glfwSwapInterval() reliable?

Is glfwSwapInterval(1) reliable enough to cap framerate to 60 fps, or should I manually cap it myself? I often see people manually capping framerates instead of using this function.

Will the function provide a steadier, more stable fps than manual capping?

like image 653
MX wb Avatar asked Jan 03 '18 00:01

MX wb


1 Answers

As far as I know, the glfwSwapInterval is to do with the v-sync on your monitor/graphics card. Have a look at this forum post which goes into more detail:

https://www.opengl.org/discussion_boards/showthread.php/177446-glfwSwapInterval%28%29-and-glfwSwapBuffer%28%29-Questions

I'm not sure but on most modern hardware I expect it won't make much of a difference!

like image 159
Alex E Avatar answered Sep 19 '22 14:09

Alex E