Sign in to follow this  
Blacal

SwapChain throws OutOfVideoMemoryException

Recommended Posts

Hello, i have a little problem regarding SwapChains in Managed DirectX / C#. If i create a swapchain and there is not enough videomemory for it, a outofvideomemoryexception is thrown. Of course, this sounds logic, but this does always happen on my laptop with an oboard graphics card. The problem is that i will need swapchains for my application. Is there any way to create such swapchains inside system memory? Greetings Blacal

Share this post


Link to post
Share on other sites
Unless you have some sort of UMA graphics adapter you wouldn't want system memory (or even paged/managed) swap chains.

What sort of sizes are you trying to create? Are you doing anything like triple buffering? Can you not re-use existing swap chains? Maybe run at a lower resolution?

In my experience this sort of thing is one of those limits you just have to place on the hardware - if you want to run at 1600x1200 with triple buffering and a 32bit depth/stencil buffer then you're going to need 30mb of VRAM available.

hth
Jack

Share this post


Link to post
Share on other sites
I create a device instance and set its backbuffer size to current screen resolution (Application runs in windowed mode) and then i create the swapchain with the resolution of the corresponding render-window.

I do not use trible buffering or such like. I let all these values at default state.

Quote:

In my experience this sort of thing is one of those limits you just have to place on the hardware - if you want to run at 1600x1200 with triple buffering and a 32bit depth/stencil buffer then you're going to need 30mb of VRAM available.


OK, thats much.

hm.. creating them with a lower resolution / color deph can be an option, but the problem is still there.

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