summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-06-17 08:14:32 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-06-17 08:14:32 (GMT)
commit5cc37fcec3d75f6a8d0ce58ab724916795aff0aa (patch)
tree4b4c57e845e9c8b9a3c8413cabaccab662196afa /doc
parentd2c04d76fc26300a33842a2ef52613f189a07c3c (diff)
downloadQt-5cc37fcec3d75f6a8d0ce58ab724916795aff0aa.zip
Qt-5cc37fcec3d75f6a8d0ce58ab724916795aff0aa.tar.gz
Qt-5cc37fcec3d75f6a8d0ce58ab724916795aff0aa.tar.bz2
doc: couple more performance tips.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/qdeclarativeperformance.qdoc12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/src/declarative/qdeclarativeperformance.qdoc b/doc/src/declarative/qdeclarativeperformance.qdoc
index b535e4b..c866724 100644
--- a/doc/src/declarative/qdeclarativeperformance.qdoc
+++ b/doc/src/declarative/qdeclarativeperformance.qdoc
@@ -117,4 +117,16 @@ a Loader as needed.
\o Fast data access - ensure the data model is as fast as possible.
\endlist
+\section1 Image resources over composition
+
+If possible, provide a single image resource, rather than using composition
+of a number of elements. For example, a frame with a shadow could be created using
+a Rectangle placed over an Image providing the shadow. It is more efficient to
+provide an image that includes the frame and the shadow.
+
+\section1 Limit JavaScript
+
+Avoid running JavaScript during animation. For example, running a complex
+JavaScript expression for each frame of an x property animation.
+
*/