diff options
author | Pauli Jarvinen <ext-pauli.p.jarvinen@nokia.com> | 2012-06-12 12:27:19 +0300 |
---|---|---|
committer | Pasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com> | 2012-06-20 09:38:57 +0200 |
commit | 8f67d9006be1d79701eb0271d9d2d373eda18e0a (patch) | |
tree | 9cb67dbe067bcd763d6f31672004dd159517e592 /config.profiles/symbian | |
parent | d254d2709d0b89b2686814afe7cd2f79b1ac04c4 (diff) | |
download | qt4-tools-8f67d9006be1d79701eb0271d9d2d373eda18e0a.tar.gz |
Performance fix for OpenGL drawing
Excessive calling of glFlush() was causing a performance problem when
QML application was being run in the OpenGL graphics mode. There was an
unnecessary call to glFlush() in the function
QGLWindowSurfaceGLPaintDevice::endPaint(). This function gets called
each time a QPainter instance is destroyed, which may happen several
times per each painted screen frame (at least 4 times per frame can
easily happen). Calling glFlush() from endPaint() is not necessary at
all since it will be anyway called from QGLWindowSurface::flush()
(either directly if single-buffered context is used or indirectly by
swapping buffers if double-buffered context is used).
Task-number: ou1cimx1#957423
Change-Id: I89509d8935ad31cc47bfed41a1900b6bb76c2af8
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Pasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com>
(cherry picked from commit a56ff23fb9e6c33ff97b5b0e8619346797626755)
Diffstat (limited to 'config.profiles/symbian')
0 files changed, 0 insertions, 0 deletions