[mythtv-users] mythWelcome and a very slow gui?
Jay Summet
jay at summet.com
Sat Feb 14 01:39:00 UTC 2009
Paul Harrison wrote:
> Jay Summet wrote:
>>> Just to clarify a few things here. MythWelcome in the 0.21 release and
>>> 0.21-fixes was modified so it only processed events every 0.25 seconds
>>> IIRC. The reason for this was to make it consume less power because it
>>> didn't needlessly wake up the cpu as often. This does have an impact on
>>> the amount of power consumed but also has a small impact on performance
>>> but only when redrawing the qt popup menu everything else seemed fine to
>>> me, even the menu was perfectly usable just a little slow to redraw
>>> sometimes. I've never seen it take 2-3 second to redraw though more
>>> like 0.25 seconds at the most for me.
>>>
>>> Paul H.
>>>
>>
>> Interesting. On my box the pause between a button press and action on
>> the screen are MUCH longer than 0.25 of a second.
>>
>> If you can give me an approximate location in the codebase I can modify
>> my copy to remove the 0.25 second wait and see if that fixes what I
>> perceive to be an overly slow UI or not.
>>
>> Jay
>>
>>
>
> The relevant line is here:-
> http://cvs.mythtv.org/trac/browser/branches/release-0-21-fixes/mythtv/programs/mythwelcome/welcomedialog.cpp#L118
>
> Try lowering the 250000 value and see if it improves things.
>
> You could also revert http://cvs.mythtv.org/trac/changeset/15206 which
> is the changeset that added the power saving stuff.
>
Hi Paul,
The 1/4 second usleep was not my (main) problem. My major slowdown
complaint was the 1-2 second pause between pressing the menu button and
the pop-up menu appearing. Looking through the code, I traced the
slowdown to a system call to mythshutdown that was checking the status
code to determine if it should show the "lock" or "unlock" shutdown button:
int statusCode = system(m_installDir + "/bin/mythshutdown --status 0");
I will check into the mythshutdown code and see if this status message
can be made to return quicker, or if it can be cached or something...
Note: I feel The 0.25 second delay is still too big. Pushing up/down to
navigate the various buttons on the menu pop-up is just slightly too
slow. I've changed it to 150000 instead of 250000 and personally found
that to feel a lot more responsive.
Jay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090213/12849db3/attachment.pgp>
More information about the mythtv-users
mailing list