summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qslider.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-21 04:23:49 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-21 04:49:02 (GMT)
commit1e284a2970efdbf32b61db3cfb207eebf7f33d14 (patch)
tree88cbd7a042dae8e2a8647ab2b491bd430fe9d207 /src/gui/widgets/qslider.cpp
parent8db9f834e604c3a9eda8f76eacad2a9af20dbd33 (diff)
downloadQt-1e284a2970efdbf32b61db3cfb207eebf7f33d14.zip
Qt-1e284a2970efdbf32b61db3cfb207eebf7f33d14.tar.gz
Qt-1e284a2970efdbf32b61db3cfb207eebf7f33d14.tar.bz2
Performance: reduce overhead of updateMatrix() in GL2 paint engine
The original code was performing 40 floating-point multiplications, 40 additions, and 2 divisions every time the matrix was changed. Because most of the components in the orthographic projection matrix are trivial, we can implement the same transformation with only 6 multiplications, 6 additions, and 2 divisions. Reviewed-by: Sarah Smith
Diffstat (limited to 'src/gui/widgets/qslider.cpp')
0 files changed, 0 insertions, 0 deletions