Sign in to follow this  
malborojones

Which pool to use with CreateOffscreenPlainSurface?

Recommended Posts

malborojones    100
Just turned the DirectX Debug output thing on and it's telling me that D3DPOOL_MANAGED isn't allowed for LPDIRECT3DDEVICE9::CreateOffscreenPlainSurface. I had a look at [url="http://msdn.microsoft.com/en-us/library/bb174358(VS.85).aspx"]this[/url] on MSDN and it says to use SCRATCH or DEFAULT although the DX debug says SYSTEMMEM is fine also.


I've been using MANAGED this whole time and haven't had a problem with it but I suppose I'd better change it if DX is telling me to.

Anyway, which one do you think I should use? I've tried SCRATCH and SYSTEMMEM and they both work fine with the code I have, using DEFAULT causes errors when the device is lost (switching to full screen, locking the computer etc.) so I'd rather not have to use that because it means having to recreate all the textures ect.
So should I use SCRATCH or SYSTEMMEM? I've read up on both and don't really understand the difference, neither seem to have a difference when used.

Thanks, Mal [img]http://public.gamedev.net/public/style_emoticons/default/cool.gif[/img]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this