From 8ce5d31fdb0b9941e51ae4f7037e7f7ff6d8a413 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Wed, 9 Sep 2015 08:00:36 +0200 Subject: Update QQuickPaintedItem::FastFBOResizing docs. Change-Id: I129307816adcbddcf1cbf6013ef736c03b130f19 Reviewed-by: Yoann Lopes --- src/quick/items/qquickpainteditem.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/quick/items/qquickpainteditem.cpp b/src/quick/items/qquickpainteditem.cpp index 8d93c577ab..033000c159 100644 --- a/src/quick/items/qquickpainteditem.cpp +++ b/src/quick/items/qquickpainteditem.cpp @@ -109,11 +109,12 @@ public: This enum describes flags that you can enable to improve rendering performance in QQuickPaintedItem. By default, none of these flags are set. - \value FastFBOResizing If your item gets resized often and you are using the - QQuickPaintedItem::FramebufferObject render target, set this flag to true to reduce the - item resizing time at the cost of using more graphics memory. Resizing a Framebuffer object - is a costly operation, by enabling this property the Framebuffer Object will use a texture - larger than the actual size of the item to avoid as much as possible resizing it. + \value FastFBOResizing Resizing an FBO can be a costly operation on a few + OpenGL driver implementations. To work around this, one can set this flag + to let the QQuickPaintedItem allocate one large framebuffer object and + instead draw into a subregion of it. This saves the resize at the cost of + using more memory. Please note that this is not a common problem. + */ /*! -- cgit v1.2.3