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

List:       kde-core-devel
Subject:    Re: KFontCombo speed
From:       Malte Starostik <malte () kde ! org>
Date:       2001-07-25 12:53:39
[Download RAW message or body]

On Dienstag, 24. Juli 2001 22:55, Rik Hemsley wrote:
> #if Martijn Klingens
>
> > On Tuesday 24 July 2001 16:53, Rik Hemsley wrote:
> > > Anyone have an idea how to work around the sluggishness ?
> >
> > Does it paint only what is visible, or does it preprocess all entries
> > upon initializing?
>
> It paints only what is visible, so if you scroll then it blocks while
> it renders the strings for the currently visible section.
>
> After about 5 minutes of scrolling up and down, all fonts are rendered
> and it is fast :}
The ctor reads in the font list, and the actual QFont and QFontMetrics are 
instantiated on first rendering.
Would it improve performance and/or memory usage if it cached a QPixmap 
instead of the QFont?

-- 
Malte Starostik
PGP: 1024D/D2F3C787 [C138-2121-FAF3-410A-1C2A-27CD-5431-7745-D2F3-C787]

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

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