[mythtv-users] Pre-scaling theme images

Joseph A. Caputo jcaputo1 at comcast.net
Tue Sep 14 09:11:18 EDT 2004

On Tuesday 14 September 2004 07:28, Cedric Tefft wrote:
> Donavan Stanley wrote:
> >On Mon, 13 Sep 2004 19:06:26 -0400, Preston Crow
> >
> ><pc-mythtv04 at crowcastle.net> wrote:
> >>How hard would it be to cache the pre-scaled theme images so that
> >> the start-up time would be faster?  Could this be a checkbox in
> >> the setup?
> >
> >They *are* cached in ~/.mythtv/themecache/. If you install a fresh
> >copy of the theme or change themes they have to be rescaled
> > otherwise it shouldn't take long at all for startup.
> I think what may be confusing the original poster is that
> mythfrontend always *indicates* it is generating pre-scaled images at
> startup even though, after the first time, it's not actually creating
> new files (presumably its just checking for updates to the original
> un-scaled images).

Disclaimer: I haven't checked the code, but...

It appears that every time you run mythfrontend *at a different 
resolution*, it removes the 'stale' themecache and generates one for 
the current resolution.  For instance, I normally run at 800x600, and I 
*never* get the "generating scaled-images..." progress bar.  Today I 
ssh-ed in from work and ran with a remote 1280x1024 display.  I saw the 
progress bar (as expected), but I also saw a terminal message "removing 
stale cache blue.800.600".  I checked, and sure enough, I now have a 
blue.1280.1024 cache and NO blue.800.600 cache.  I fully expect that 
the next time I fire up my main frontend I will see the progress bar.

Perhaps it would be a good idea to have myth *not* delete a themecache 
just because it's not the current resolution?


More information about the mythtv-users mailing list