My limited FPS : 60

后端 未结 3 1576
灰色年华
灰色年华 2021-02-19 00:54

I have learn OpenGL programming for some time.And I found a very strange phenomenon : my FPS(Frame per Second) always stays about 60,no matter the program is very easy or a litt

3条回答
  •  渐次进展
    2021-02-19 01:25

    What @Thomas said, it's VSync.

    You can disable it in your applicaton using:

    • GLFW: glfwSwapInterval(0); (0 = off, 1 = on)
    • SDL: SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 0);
    • FreeGLUT: I'm not aware of this being possible, use your GPU settings as a fallback

提交回复
热议问题