[mythtv-users] Workaround: MythMusic: Selection/scrolling of
music is slow - X uses 99% CPU???
Peter Valdemar Mørch
swp5jhu02 at sneakemail.com
Mon Mar 7 07:54:16 UTC 2005
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
More information about the mythtv-users
mailing list