[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: KDE Icon naming data base
From:       Stefan Nikolaus <nikolaus4 () googlemail ! com>
Date:       2007-07-26 9:23:01
Message-ID: 200707261123.05444.nikolaus4 () googlemail ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hello Robert,

On Thursday 26 July 2007 05:01:22 Robert Knight wrote:
> Hi Stefan,
>
> James's comments reminded me of something I spotted at Akademy after
> learning about Qt's paint performance debugging tool.
>
> KSpread (2.0) currently repaints far too many cells when changes are
> made in the spreadsheet, including every cell in the entire view when
> a single cell's contents change.
>
> To reproduce:
>
> 1.  From the terminal, set the QT_FLUSH_PAINT environment variable to
> a small non-zero number.  eg:
>
> export QT_FLUSH_PAINT=1
>
> 2.  Run kspread 2.0 from the terminal.
>
> 3.  Make changes in the spreadsheet.  Scroll around, edit cell
> contents etc. and you can see the repainted areas flash yellow.
> Increase the value of QT_FLUSH_PAINT and the flashing will last
> longer.

Thanks for the hint. Especially, the repainting of all visible cells at the 
beginning and the end of the editing seems not very clever on the first look. 
Also, the amount of cells on changing the selection is too high. Obviously, 
there are still many places left to optimize. Scrolling looks okay though: 
the painting is clipped - maybe some cycles can be saved by checking wether 
the cell lays in the clipped region.

Regards,
Stefan

["signature.asc" (application/pgp-signature)]

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic