Jump to content
  • Advertisement
Sign in to follow this  
sweet hero

get d3d runtime memory use

This topic is 3670 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

recently I found my program cost too much memory,I checked my code,found lots of d3d resource created by D3DPOOL_MANAGED, but I want to know how many memory exactly d3d run time consume, unfortunately d3d doesn't supply such function, so can someone tell me is there a way to get whole d3d runtime memory use. thanks a lot.

Share this post


Link to post
Share on other sites
Advertisement
Measuring memory for D3D apps is unfortunately a non-trivial task.

A managed texture will have a system memory 'shadow', but depending on the hardware it could be in AGP addressable system memory or video memory for example.

Default pool textures are conceptually supposed to be in video memory, but again based on the specific GPU it may well be paged into OS-visible memory by the driver (especially for UMA or "TurboCache" type cheap GPU's or laptops).

You might get some good stats by firing up NVPerfHUD or the AMD equivalent and see what metrics it provides.

hth
Jack

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!