diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-01-20 09:18:32 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-01-27 15:30:18 (GMT) |
commit | 94e9dba9289f129598a92f817f835b0205188c6c (patch) | |
tree | 335b3421f39e413c7deaf72567aa2d2e9fcba6c3 /doc/src/snippets/code/src_gui_kernel_qkeysequence.cpp | |
parent | 8315b169f152c81bbad88c1c093283c00b94f43f (diff) | |
download | Qt-94e9dba9289f129598a92f817f835b0205188c6c.zip Qt-94e9dba9289f129598a92f817f835b0205188c6c.tar.gz Qt-94e9dba9289f129598a92f817f835b0205188c6c.tar.bz2 |
Use an attribute value for the PMV matrix rather than a uniform
This has several advantages: First, updating an attribute value
seems to be cheaper than updating a uniform. Second, vertex atribute
values are independent of shader program, which means they persist
across changing of the shader program. This makes code simpler and
reduces GL state changes. Note: Credit goes to Samuel for finding
this little gem. :-)
For the 25920 solid QGraphicsRectItem test case, this gives 10%
improvement on desktop and 27% on the SGX.
Reviewed-By: Kim
Diffstat (limited to 'doc/src/snippets/code/src_gui_kernel_qkeysequence.cpp')
0 files changed, 0 insertions, 0 deletions