[Qt-interest] How to optimize QGLWidget render buffers

Constantin Makshin cmakshin at gmail.com
Fri Dec 31 13:06:38 CET 2010


The only way to change OpenGL context parameters (single or double
buffering, presence of depth and stentil buffers, etc.) is to recreate
the context. But that means your application would have to
reinitialize all data related to OpenGL (textures, buffers, ...) each
time the user switches to another application or minimizes your one.

On Tue, Dec 28, 2010 at 9:44 AM, Chen, Zhenqiang
<zhenqiang.chen at intel.com> wrote:
> Hi All,
>
> GL render buffers take lots of memory for each app.
>
> By default, QGLFormat is:
>  QGL::DoubleBuffer | QGL::DepthBuffer | QGL::Rgba | QGL::DirectRendering
> | QGL::StencilBuffer | QGL::DeprecatedFunctions;
>
> Due to the memory limitation on handset,
> Can the app change config to clear stencil, depth buffer or others
> when the app is in the background or minimized?
>
> Or use singlebuffer?
>
> How to optimize the buffers for QT-4.7.1?
>
> Thanks!
> -Zhenqiang



More information about the Qt-interest-old mailing list