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

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Nov 23 09:51:38 CET 2008


On Sat, Nov 22, 2008 at 10:43:04PM +0000, Jim Hauxwell wrote:
> > Ok, here is the (untested) patch that only move the
> > BeginScene/StretchRect. I think previous was actually incorrect, since
> > BeginScene/EndScene would be called multiple times with slices, which I
> > think is not allowed.
> 
> 
> from msdn...
> 
> Applications must call IDirect3DDevice9::BeginScene before performing
> any rendering and must call IDirect3DDevice9::EndScene when rendering is
> complete and before calling IDirect3DDevice9::BeginScene again.
> 
> So no, it wasn't a bug, but it wasn't very optimal, which is why I
> removed the superfluous calls.

No, you failed to read till the end, where it says (yes, they use a
ridiculously overcomplicated way to explain it):

> There should be at most one
> IDirect3DDevice9::BeginScene/IDirect3DDevice9::EndScene pair between any
> successive calls to present 

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list