[Kde-games-devel] SVG and MainWindow resize handling

Andreas Pakulat apaku at gmx.de
Sat Jan 19 18:33:37 CET 2008


On 19.01.08 18:22:59, Albert Astals Cid wrote:
> A Dissabte 19 Gener 2008, Andreas Pakulat va escriure:
> > On 19.01.08 17:40:12, Burkhard Lehner wrote:
> > > And just to compare it to Microsoft Windows' behaviour: In Freecell, when
> > > changing the window size, first the rescaled pixmap versions of the cards
> > > are used, until the rendered vector versions are computed. I don't know
> > > if this is already done in kgames, but I think it could easily be
> > > implemented.
> >
> > Well, scaling a pixmap is actually also quite a penalty, because you've
> > got two QImage<->QPixmap conversions in between.
> >
> > Hmm, why exactly are pixmaps used everywhere and not QImage's?
> 
> pixmaps are stored in the X server, so painting them is FAST

Yes, but there are quite some things (at least IIRC in kpat) done with
the pixmaps, which require converting from/to QImage, which is _quite_
slow. And it adds up when drawing 32 card decks.

Andreas

-- 
You are farsighted, a good planner, an ardent lover, and a faithful friend.


More information about the kde-games-devel mailing list