Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
18 Views

IDirect3DDevice9::UpdateSurface vs LockRect/UnlockRect

I am experimenting with encoding from system memory, and I had the following thought.

Just wondering if anybody at Intel thinks there would be speed benefits to using UpdateSurface() to load D3D surfaces from system memory during encoding rather than use LockRect()/UnlockRect() as per the examples.

Thanks

Cameron

0 Kudos
1 Reply
Highlighted
Employee
18 Views

Hi Cameron,

As far as I know this is not something we have explored. But that approach seems to be somewhat constrained, since you would somehow have to store your system memory surfaces in a D3D surface container. Anyways, I've personally not explored this.

If you find a suitable way of doing this which brings good performance, feel free to share your findings on this forum.

BTW. if you are using system memory surfaces as input to the encoder.you do not have to lock surface ahead of copying data into it.

Regards,
Petter 

0 Kudos