diff options
| author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-12-28 09:31:22 (GMT) |
|---|---|---|
| committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-12-28 10:48:51 (GMT) |
| commit | 9709b10d691857209a684495799d163098bb44eb (patch) | |
| tree | 3b13bbcc3c7e1030604d6aab0867baa2a068afb4 /doc/src/snippets/code/src_script_qscriptengine.cpp | |
| parent | f9ceaa5cee03c642665514c1da08a43de5c3a56f (diff) | |
| download | Qt-9709b10d691857209a684495799d163098bb44eb.zip Qt-9709b10d691857209a684495799d163098bb44eb.tar.gz Qt-9709b10d691857209a684495799d163098bb44eb.tar.bz2 | |
Move the 0.5 offset we add for aliased rendering to updateMatrix()
The old code set and unset a temporary matrix for every draw command
when doing aliased rendering. Instead, we just use a flag to indicate
that updateMatrix() should add the offset. This means the offset is
added only once. When doing lots of small rendering operations on a
(non-multisampled) QGLWidget, this gives up to 72% performance boost
on the SGX.
Reviewed-By: Kim
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptengine.cpp')
0 files changed, 0 insertions, 0 deletions
