[MPlayer-dev-eng] Video CPU usage reported incorrectly since 33114 threading patch

Hermi Mercury hermi.hg at gmail.com
Wed Mar 30 13:26:24 CEST 2011


I noticed that when multiple threads are used with mplayer revision 33114
(through r33148), the video CPU usage reported is near 0%, as compared to
~20% for revision 33113 of mplayer.  The changes introduced in r33114 enable
threading (for the ffh264 video decoder at least).

Some output from testing indicates that because thread_count was not being
set in r33113 (when using pthreads at least), threading was not enabled with
this earlier build.  I tracked CPU usage reporting down to the
video_time_usage variable, where it is incremented in dec_video.c, but was
unable to determine exactly how threading was interfering with this counter.


If someone with some more experience in this area could take a look I'd
appreciate it.

Regards,

- Hermi


More information about the MPlayer-dev-eng mailing list