[MPlayer-dev-eng] [PATCH] Re : Re : Direct3D vo performance increase

Jim Hauxwell james at dattrax.co.uk
Mon Nov 24 22:14:24 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All,

I've updated to the latest svn converted my OSD patch to new framework.

>> Please don't get angry with me, but I seriously doubt that patch
>> provides any useful starting point. Problems it has:
>> 1) OSD is drawn with one frame delay

OSD is drawn at the same point the gl renderer draws it, its beyond the
scope of the callbacks to fix this.  You would probably have to delve
into sub.c to get this sorted out.

>> 2) OSD is rendered in software first and then once more in hardware

Again does the same as the gl renderer.

>> 3) no alpha-blending is done at all

The base layer provided no alpha channel, so there wasn't much point
turning it on.  This is my next thing to look at.  The patch to enable
the alpha is very small, but alpha bending has a performance penalty
which is why its not on at the moment.

>> 4) the OSD is completely redrawn even if it did not change at all
> 

This is not true, it gets called once when placed on the screen and once
when taken off, so should save on CPU compared to a render which dumps
directly onto the video.

> 
> I understand. I'll get involved with OSD these days (first I'll submit
> a RGB support patch) and I'll try to understand how to correct these
> problems. I won't get angry with you - these are very correct points!
> I'll try to make OSD render on the correct frame, in hardware and with
> alpha blending. It will take a lot of research :)
> 
> I just wanted Jim to submit in the mail list his patch relative to the
> latest coding style, so I can see what D3D commands he's using and
> adjust "my starting point" :)
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkrGTAACgkQhrNWoHjgI1B+ZQCcD29seHFJBSS5pRSj2ehzvvOG
1d8AnRkcpajLw6CW9Kuajq5EueW/7y/K
=nnPi
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff4.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081124/93c3abe0/attachment.asc>


More information about the MPlayer-dev-eng mailing list