[mythtv] [PATCH] Limit the updates for nonexisting LCD

Isaac Richards ijr at po.cwru.edu
Fri Oct 8 22:31:42 UTC 2004


On Friday 08 October 2004 06:12 pm, Kenneth Aafløy wrote:
> So I'll start making patches like:
>  if ( (LvdDevice *dev = gContext->GetLcdDevice()) )
>  {
>   ....
>  }
> which would not affect the current behavior at all, and then in the end
> send the patch which really does not create and/or deletes the lcd object
> if it's unable to connect to it's server.

Cool, that'd be great - though, it'd probably make sense to make the lcd 
object a singleton, and remove it from the context object completely.

> > > So if I change the 250 in my patch to a 1000 and remove the secsTo()
> > > stuff it would scale nicely as it would be updated less if the load is
> > > high.
> >
> > I would just move the calcSliderPos bit into the existing code that makes
> > it only check once a second, personally.
>
> I was thinking why calculate time x is over y, z times a second for such a
> minute task as updating the lcd display, which could live well with a bit
> of a delay on very high load.

True, that works..

Isaac


More information about the mythtv-dev mailing list