diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-07-15 02:18:58 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-07-15 07:10:59 (GMT) |
commit | 29b2afa8d6689b96c185a779fa8353c1018dc0a7 (patch) | |
tree | 234bd374c4ed72462aad9fb11d35d56121d64041 /doc/src | |
parent | 0e037a832f7015117b9a9ef169b0308c64498e37 (diff) | |
download | Qt-29b2afa8d6689b96c185a779fa8353c1018dc0a7.zip Qt-29b2afa8d6689b96c185a779fa8353c1018dc0a7.tar.gz Qt-29b2afa8d6689b96c185a779fa8353c1018dc0a7.tar.bz2 |
Performance docs.
(cherry picked from commit adbdb6c4b52d72e77d1cb4ff23573e957a7c9e14)
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/declarative/qdeclarativeperformance.qdoc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/src/declarative/qdeclarativeperformance.qdoc b/doc/src/declarative/qdeclarativeperformance.qdoc index 26c1e89..be8c029 100644 --- a/doc/src/declarative/qdeclarativeperformance.qdoc +++ b/doc/src/declarative/qdeclarativeperformance.qdoc @@ -115,4 +115,25 @@ provide an image that includes the frame and the shadow. Avoid running JavaScript during animation. For example, running a complex JavaScript expression for each frame of an x property animation. +\section1 Rendering + +Often using a different graphics system will give superior performance to the native +graphics system (this is especially the case on X11). This can be configured using +QApplication::setGraphicsSystem() or via the command line using the \c -graphicssystem +switch. + +You can enable OpenGL acceleration using the \c opengl graphics system, or by setting a +QGLWidget as the viewport of your QDeclarativeView. + +You may need to try various options to find what works the best for your application. +For embedded X11-based devices one recommended combination is to use the raster graphics +system with a QGLWidget for the viewport. While this doesn't guarantee the \bold fastest +performance for all use-cases, it typically has \bold{consistently good} performance for +all use-cases. In contrast, only using the raster paint engine may result in very good +performance for parts of your application and very poor performance elsewhere. + +The QML Viewer uses the raster graphics system by default for X11 and OS X. It also +includes a \c -opengl command line option which sets a QGLWidget as the viewport of the +view. On OS X, a QGLWidget is always used. + */ |