[mythtv] Solving my performance problems...

Isaac Richards ijr at po.cwru.edu
Wed Dec 17 20:31:30 EST 2003


On Sunday 14 December 2003 01:33 pm, Steve Brown wrote:
> I hypothesized that part of the problem was the latency of the usleep
> spinlocks in NuppelVideoPlayer. As an experiment, I instrumented all the
> waits and found that only 2 of them were frequently used, specifically,
> the ones at ::GetFrame:614 (appx) and ::OutputVideoLoop:1284 (appx). I
> replaced them with QWaitConditions. Also, ::setPrebuffering  is called
> by 2 threads, but doesn't protect the "prebuffering" variable. I didn't
> find any evidence of a race in my testing, but added a lock anyway.
> Hdtv now plays without stuttering whether ota or from disk. The channel
> changing problems remain.
>
> If you are interested in playing with the patch, let me know off-list. I
> don't want to clutter the list with a half-baked, experimental patch.

Have you done anything more with this?

Isaac


More information about the mythtv-dev mailing list