[MPlayer-dev-eng] Make ffmpeg MPEG1/2 decoder the default?

Uoti Urpala uoti.urpala at pp1.inet.fi
Tue Feb 19 01:45:01 CET 2008


On Tue, 2008-02-19 at 01:41 +0200, Siarhei Siamashka wrote:
> How much is the overhead of XSync? Better solutions are surely welcome.

It's not only the overhead of doing the XSync(), but the possibly
unnecessary wait for the X server to finish processing the requests.
Without XSync() MPlayer may be able to run doing useful work in parallel
while the X server handles the requests (running on another core or
waiting for graphics hardware).

If X is the bottleneck and MPlayer needs to wait for it then a better
location for the XSync() is just BEFORE using X functions, to ensure
previous frames have finished before starting the next one while letting
MPlayer and X run in parallel as long as possible. In current MPlayer
code that would be at the start of the frame timing sleep (no point in
delaying further if it's going to sleep anyway).




More information about the MPlayer-dev-eng mailing list