Peter Kümmel wrote:
Abdelrazak Younes wrote:
Peter Kümmel wrote:
The most time is spend in the Qt function QPainter::drawText.
Could this time be reduced?
I came to the same conclusion with the Mac profiling done by Bennett. I
guess we can't do much about QPainter::drawText because this is part of
the Qt API.

Abdel.




How often have I heard that the painting performance of Qt4 is so bad, bad, 
bad...

And all what we can do is to hope it becomes better, seems Trolltech has 
forgotten
it's clients.


But is there really no solution? Maybe we could paint onto a other device and
then copy into the QWidget?
Yes. I have been experimenting with a QPicture cache between QLPainter::start() and QLPainter::end() which would replay the QPicture into the QWorkArea painting_device_ (which is a QPixmap). The speedup is awesome. Unfortunately the core is not prepared for that kind of "meta" drawing.

Abdel.

Reply via email to