OpenGL:如何控制我的窗口将使用哪种缓冲方法? [英] OpenGL: How to control which buffering method my window will use?

查看:144
本文介绍了OpenGL:如何控制我的窗口将使用哪种缓冲方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让用户选择双缓冲和三缓冲,因为在某些卡(或操作系统?),默认情况下启用三重缓冲,并导致一些性能问题。

I want to give the user ability to choose from double buffering and triple buffering, because on some cards (or OS?) the triple buffering is enabled by default, and its causing some performance problems.

我如何做到这一点?

推荐答案

处理绘图调用等。您需要使用供应商特定的调用。在Windows中,有用于处理上下文创建的WGL等。

You cannot do this from OpenGL itself, since OpenGL only deals with drawing calls, etc. You need to use the vendor specific calls for this. In Windows, there is the WGL for handling context creation, etc.

这篇关于OpenGL:如何控制我的窗口将使用哪种缓冲方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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