[mythtv-users] Watch recordings screen in Mythbuntu theme slow

MythTV mythtv at ncc1701.serveftp.net
Sun Jan 17 12:16:11 UTC 2010


> 
> That worked perfectly.  Thanks so much.

You're Welcome.

> It does make me wonder why the theme developer added the fanart
> functionality when it has such a dramatic impact on performance.

Apparently it much better in 0.23 / trunk, and the problem isn't apparent
if you *have* fanart installed.  I personally only noticed the lag because
on my AMD Quad-9550 it was under a second, but only happened on shows which had
no fan-art.

It then prompted me to track the problem further..

Attaching to the running mythfrontend with 'strace' showed the fanart directory
being scanned, every fan-art image opened, followed by a lengthy file descriptor flush
for every key press on the remote.

The caching works when fanart exists... negative caching fails to prevent multiple
scans for missing fanart.


> 
> Cheers, Paul
> 
> 
> 2010/1/17 MythTV <mythtv at ncc1701.serveftp.net>
> 
> 
> > -----Original Message-----
> > From: mythtv-users-bounces at mythtv.org [mailto:mythtv-users-
> > bounces at mythtv.org] On Behalf Of Paul Clark
> > Sent: Sunday, 17 January 2010 9:46 PM
> > To: Discussion about mythtv
> > Subject: [mythtv-users] Watch recordings screen in Mythbuntu theme
> > slow
> >
> > Hi all
> >
> > I've got Myth 0.22 running on Ubuntu 9.10.  Everything is working
> > great
> > - thanks to all the devs for their efforts - the only thing I can't
> > get working is the performance of the Mythbuntu theme in the Watch
> > Recordings screen.  I get a 2 second lag when navigating through
> > either the pane of the screen.  Watching top as I stack up keypresses
> > I can see the mythbackend process shoot up to nearly 100% CPU.
> 
> This is correct.  The CPU lag is mythfrontend searching for "Fanart".
> 
> > If I change the theme to Mythcenter-Wide then no lag.  I'm happy
> using
> > Mythcenter-wide but I'd prefer the Mythbuntu theme.
> Mythcenter theme doesn't support "Fanart".  Mythbuntu theme does
> 
> >
> > Any suggestions for speeding up the Watch Recordings screen in the
> > Mythbuntu theme?
> Edit /usr/share/mythtv/themes/Mythbuntu/recordings-ui.xml
> 
> Locate the 'Fanart' block and either comment it out (using <!-- and --
> >) or just delete it.
> 
> <!--
>        <imagetype name="fanart">
>            <filename>background.png</filename>
>            <area>0,0,1280,720</area>
>            <preserveaspect>yes</preserveaspect>
>        </imagetype>
> -->
> 
> Reload mythfrontend, and the LAG should disappear.  (As will the Fanart
> support, which I guarantee you won't miss).
> 
> 
> >
> > Thanks, Paul
> >
> 
> HTH.
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



More information about the mythtv-users mailing list