[Interest] QQuickWindow::update to render custom OpenGL in QtQuick2

Preet prismatic.project at gmail.com
Mon Jun 17 02:38:08 CEST 2013


Hi

I want to render things with OpenGL directly in a QQuickItem (like
http://doc-snapshot.qt-project.org/qt5-dev/qtquick/scenegraph-openglunderqml.htmlshows)
but I get the impression that doing so means every other item in the
scene is updated at the rate that I choose to call QQuickWindow::update()
from my custom QQuickItem.

I want to avoid the overhead of painting everything again and again if the
items in the scene haven't changed, especially if I'm updating my object at
30 or even 60fps.

With a QQuickItem that uses a QSGNode I can set DirtyStateBits and then
call QQuickItem::update() to force an update to *just that* item. I can't
do this with the tutorial I linked above though, because it's not using a
node.

* Does QQuickWindow::update() truly force a repaint to everything in the
window even if it hasn't changed? If so...

* Is there a way to use partial updates instead?

I'm aware I can render to an FBO, but that takes away the 'easy' full
screen MSAA I get with the direct method.


Preet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130616/f4548a13/attachment.html>


More information about the Interest mailing list