[MPlayer-cygwin] [PATCH] vo_directx.c: CPU hog fix

Martin Fiedler martin.fiedler at gmx.net
Tue Feb 7 22:45:29 CET 2006


Hi,

when used with the -wid option, MPlayer always takes 100% CPU time on
some, but not all systems (the problem occurs on my A64 3000+, WinXP,
GeForce 6600, but everything is fine on the P4 2.8 GHz, Win2K, i915 at
work). I tracked it back to Directx_ManageDisplay() in vo_directx.c
checking DirectX caps, setting up the DirectDraw clipper and doing other
stuff with *every* frame. I added some code that skips all this
initialization if the window size didn't change since the last frame.
I hope that this doesn't introduce other problems.

Best regards,
Martin J. Fiedler
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vo_directx.kj.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cygwin/attachments/20060207/7a7782e7/attachment.asc>


More information about the MPlayer-cygwin mailing list