Abdelrazak Younes wrote:
Andre Poenitz wrote:
On Wed, Jun 14, 2006 at 10:05:33AM +0200, Abdelrazak Younes wrote:
The more I think about it the more I reckon Qt painting speed is not the issue. This is comforted by these numbers:

-Modules, 42.530127
  -QtGui4.dll (SymExport), 18.157461
     QPainter::drawTextItem, 3.968417
     QPainter::drawPixmap, 1.599013
Where are the remaining 12 or 13 seconds?

Most likely in the row breaking code and in *.width() calls.

I think there might be something about the frequency of the paintEvent. Qt4 adjust the number of paintEvent per second depending on the need but there's a maximum update rate.

Is there some documentation about this behaviour?

No, only what I write on this list :-)
More seriously, I understood that by putting a:

  cout << i++ << " " ;

in WorkArea::paintEvent(). When nothing is done and the cursor is not visible I only see a few screen update per second. With cursor blinking it's a bit more and when you scroll down with PageDown, it's a lot more.

I tried to force a repaint instead of an update in WorkArea::expose but I get the exact same performance WRT srolling UserGuide. So I guess I am wrong here... Not the first time I say that :-(

Abdel.

Reply via email to