Archived

This topic is now archived and is closed to further replies.

Lifepower

Direct3D8, hardware caps

Recommended Posts

Lifepower    136
Greetz everyone and HNY. Is there a way in D3D8 to see how much VIDEO MEMORY the given adapter has and how much is free? I''ve been looking through SDK and it doesn''t seem to have any information ''bout that and it''s not returned in GetDeviceCaps. If D3D8 doesn''t provide that information, what are my alternatives? Thanx Lifepower

Share this post


Link to post
Share on other sites
S1CA    1418
IDirect3DDevice8::GetAvailableTextureMem

Although D3D deliberately rounds the amount - it should only ever be used as a rough guide to decide whether to use high detail textures for example.

It''s not as simple as "how much free video memory is there" - some graphics cards such as the old 3Dfx ones have separate memory for textures, different to the memory for the frame buffer. Also you can''t use the figure to calculate how many surfaces you can create since video card drivers often need special alignment etc so a surface in video memory could take much more than simpy width*height*bytesperpixel

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites