[mythtv] API suggestions

Renchi Raju renchi at pooh.tam.uiuc.edu
Fri Feb 6 11:44:27 EST 2004



On Fri, 6 Feb 2004, Henrik (Mauritz) Johnson wrote:
>
> 2. Would anyone have any problems with me adding a few methods for
> modifying a few attributes of UI elements. The one I ran into now was
> changing the pixmap of a textbutton while running, but I'm sure there
> are more.

send a patch.

> 3. I have a fairly complex UI XML file (Around 40 elements) and it takes
> 20 seconds to render... Should this really be the case? it seems really
> excessive.

not sure what you are doing... but some hints:
1) make sure you are not repainting more times than needed. one paint
per paintevent is usually whats needed
2) use update instead of repaint - repaint forces an immediate paint.
update stacks up multiple paintevents and cuts them down to a single
paintevent
3) paint only whats necessary. use containers (ui theme) and update only
those containers which need to be updated

renchi



More information about the mythtv-dev mailing list