Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Always returning DXGI_RESIDENCY_FULLY_RESIDENT

$
0
0

So I'm running Win7 have a video card that is 512mb DX10, and in a test application I load 800mb worth of textures.  I'm getting readings for dedicated vram usage and system (shared) vram usage from process explorer.  Those readings are exactly as I expect... Dedicated VRAM fills up (totaling under 512mb since there are other processes and Aero running), then the remaining textures fill up system (shared) vram.  Deleting those textures frees up both readings.

Here's the problem:  I'm using this function "QueryResourceResidency" after loading 800mb of textures and spilling over to system (shared) vram.  The function returns success, and I'm able to get other info like width, height, and texture format, but this function ALWAYS returns DXGI_RESIDENCY_FULLY_RESIDENT.  I expected it to return DXGI_RESIDENCY_RESIDENT_IN_SHARED_MEMORY for at least some of the textures since there's no possible way for all textures to be fully resident.

Am I misunderstanding something or is this function broken?

http://msdn.microsoft.com/en-us/library/windows/desktop/bb174533%28v=vs.85%29.aspx


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>