[mythtv] [PATCH] QImage/QPixmap Cache
Kenneth Aafløy
lists at kenneth.aafloy.net
Wed Oct 6 23:34:43 UTC 2004
On Tuesday 05 October 2004 21:10, Isaac Richards wrote:
> On Monday 04 October 2004 11:33 pm, Kenneth Aafløy wrote:
> > Hi,
> >
> > I've attached a patch that will speed up the loading of mythfrontend and
> > save memory in the QImage/QPixmap handling in MythTV.
>
> There are some instances where it will load an images, then scale them to
> display differently in different parts of the application - channel icons
> being a notable example.
Ok, didn't think of that, these are mostly using the QImage LoadScale version?
I'm thinking of modifying the LoadScale function to also deal with scaling the
images to it's final size if needed, so they can be cached as well.
> Also, this would work better with an upper size limit on the number of
> cached images, so as to not use _too_ much ram. The QCache class would
> likely work well for that.
Or QPixmapCache, but I figured most of the images was in memory all the time.
The ThemedMenu pixmap at least has them loaded all the time, so for this to
work, I would have to ignore them.
Kenneth
More information about the mythtv-dev
mailing list