在SDL + OpenGL中关闭vsync [英] Turn off vsync in SDL + OpenGL

查看:187
本文介绍了在SDL + OpenGL中关闭vsync的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。

我想在SDL中关闭vsync。我该怎么办 ? SDL可以为我做吗?

谢谢。

解决方案

请使用WGL_EXT_swap_control扩展来打开/关闭垂直同步。在opengl应用程序中,我们可以通过调用glGetProcAddress(wglSwapIntervalEXT)来访问此扩展。对于SDL应用程序,以下链接将有助于访问opengl扩展。

http://content.gpwiki.org/index.php/SDL:Tutorial:OpenGL_Extensions_with_SDL



以下链接也将对您有所帮助。 />


http://forums.libsdl。组织/ viewtopic.php T = 7349&安培; SID = 1b392c994a1c9960c5632dd12d4433a4

Hi.
I want turn off vsync in SDL . What should I do ? Can SDL do it for me ?
Thanks.

解决方案

Please use WGL_EXT_swap_control extension to turn on/off Vertical Sync. In an opengl application, we can access this extension by calling glGetProcAddress("wglSwapIntervalEXT"). For an SDL application, the following link will be helpful to access an opengl extension.
http://content.gpwiki.org/index.php/SDL:Tutorial:OpenGL_Extensions_with_SDL

Below link will also help for you.

http://forums.libsdl.org/viewtopic.php?t=7349&sid=1b392c994a1c9960c5632dd12d4433a4


这篇关于在SDL + OpenGL中关闭vsync的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆