Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

MythMusic: Selection/scrolling of music is slow - X uses 99% CPU???

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


swp5jhu02 at sneakemail

Mar 5, 2005, 8:33 PM

Post #1 of 2 (1135 views)
Permalink
MythMusic: Selection/scrolling of music is slow - X uses 99% CPU???

Hi,

I've just upgraded from a CVS snapshot of 0.15 taken "at some point" to
a vanilla 0.17.

Now, it seems that scrolling through the artists in the "Edit Playlist"
screen has become much, much slower, and I don't understand why... It
takes about a second or two to move up or down one artist, album or song
in the list. Top says the X process ends up taking 99% CPU time.
/var/log/XFree86.0.log contains no hints. The worst part is that the
keyboard or lirc events get queued so the list continues to move many
seconds after I let go of the button...

Searching through the archives there was this thread from April 12, 2004:
http://www.gossamer-threads.com/lists/mythtv/users/61340?search_string=mythmusic%20slow;#61340
but there was no answer to the speed and it deteriorated rapidly into a
"I like the old interface better" thread.

The Dev list had a "[PATCH] Fix slow scrolling in MythMusic playlist
selection screen":
http://www.gossamer-threads.com/lists/mythtv/dev/95236?search_string=mythmusic;#95236
but from looking at the patch and the 0.17 code it seems to be in the
there already.

Anybody know why it should take 99% CPU to move around the MythMusic
playlist editor? Even better: Anybody know of a fix/workaround?

Peter
--
Peter Valdemar Mørch
http://www.morch.com
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


swp5jhu02 at sneakemail

Mar 6, 2005, 11:54 PM

Post #2 of 2 (976 views)
Permalink
Re: Workaround: MythMusic: Selection/scrolling of music is slow - X uses 99% CPU??? [In reply to]

Peter Valdemar Mørch swp5jhu02-at-sneakemail.com |Lists| wrote:
> Anybody know why it should take 99% CPU to move around the MythMusic
> playlist editor? Even better: Anybody know of a fix/workaround?

Well, this patch works. When navigating around the music list, the
bottom part of the screen ususally gets updated with the title, artist,
lenght etc. Disabling that with the patch below moves the CPU usage from
99% to around 2% when navigating the playlist editor and makes the UI
nice and responsive.

So something funky is up with DatabaseBox::entered(). I'm not sure, but
it calls m_lines.at(XX)->SetText() a number of times, and these calls
may be causing the high CPU utilization. But I've never written a line
of X gui code, so I really don't know whats going on... But maybe I
should take that up with the devel list... :-D

But here is a workaround for others who have the same problem...

Peter

--- mythmusic-0.17/mythmusic/databasebox.cpp.orig 2005-02-06
19:27:45.000000000 +0100
+++ mythmusic-0.17/mythmusic/databasebox.cpp 2005-03-07
00:29:42.000000000 +0100
@@ -599,6 +599,9 @@

void DatabaseBox::entered(UIListTreeType *treetype, UIListGenericTree
*item)
{
+ cerr << "DatabaseBox::entered\n";
+ return;
+
if (!item || !treetype)
return;


--
Peter Valdemar Mørch
http://www.morch.com
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.