diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-07-15 04:00:20 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-07-15 04:00:20 (GMT) |
commit | 792835df3051f73b11d5a27313a9b4439af49911 (patch) | |
tree | a9368990eef935067fcf5bf0cb77f1a5d19bcade /doc | |
parent | 5878027280de47e8b8fc72a4d0d48f5e5f6dc7db (diff) | |
parent | adbdb6c4b52d72e77d1cb4ff23573e957a7c9e14 (diff) | |
download | Qt-792835df3051f73b11d5a27313a9b4439af49911.zip Qt-792835df3051f73b11d5a27313a9b4439af49911.tar.gz Qt-792835df3051f73b11d5a27313a9b4439af49911.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml:
Performance docs.
Added symbian defs for e55781212532e2abcdd1cef8548b146fb14f0713
Diffstat (limited to 'doc')
-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. + */ |