[Kde-games-devel] SVG and MainWindow resize handling
Ian Wadham
ianw2 at optusnet.com.au
Sat Jan 19 14:21:17 CET 2008
On Sat, 19 Jan 2008 11:52 pm, Andreas Pakulat wrote:
> Unrelated question: Do the svg games already use KPixmapCache for
> caching the rendered svg's?
>
Not sure if any do. KGoldrunner does not. It was the next thing I
was going to try: mainly to save pixmaps between closes and
re-opens of main window and avoid SVG loads on startup.
> IMHO that could speed up re-resizing the
> app, i.e. if you change from maximization to "normal" size and back, as
> in that case it would only reload a QPixmap instead of rerendering the
> svg.
Within one session of the game, possibly. But KMainWindow and friends
forget "normal" size when a maximized main window closes ... ;-)
BTW, the KDE Games team did kick around ideas like KPixmapCache
before the release of KDE 4.0, but mostly decided to leave refinements
till KDE 4.1. I think we did well to produce a large slab of working
KDE 4.0 apps, Andreas, don't you?
All the best, Ian W.
More information about the kde-games-devel
mailing list