summaryrefslogtreecommitdiffstats
path: root/src/opengl/qpixmapdata_gl_p.h
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-12-22 09:57:19 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-12-22 14:59:12 (GMT)
commit8908c2575b76789652aab4f623d60734707c3a54 (patch)
tree6a9ac63774e868cdc5c0e9831a88ea7854a9dfaf /src/opengl/qpixmapdata_gl_p.h
parentb784d4991b186037ccd2b60ae3101697a2251160 (diff)
downloadQt-8908c2575b76789652aab4f623d60734707c3a54.zip
Qt-8908c2575b76789652aab4f623d60734707c3a54.tar.gz
Qt-8908c2575b76789652aab4f623d60734707c3a54.tar.bz2
Use 3x3 PMV matrices rather than 4x4 in the GL2 engine
QGraphicsView based applications will set a new transform for every item before it's painted. This leads to lots of updates to the PMV matrix. So switching to a 3x3 rather than a 4x4 gives us less data to pass to GL for each QGraphicsItem which gets rendered. It also means the vertex shader is more efficient. However, this patch only gives a maximum 2.5% speed improvement on the SGX, which seems to be only due to the faster vertex shader rather than the reduced amount of data we pass to GL. Reviewed-By: Kim
Diffstat (limited to 'src/opengl/qpixmapdata_gl_p.h')
0 files changed, 0 insertions, 0 deletions