Welcome, Unregistered.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
Old 26-Oct-2011, 01:41   #26
Davros
Darlek ******
 
Join Date: Jun 2004
Posts: 9,653
Default

perhaps gpu-z is querying the video bios somehow
__________________
Guardian of the Most holy Two Terabytes of Gaming Goodness™
Davros is online now   Reply With Quote
Old 27-Oct-2011, 12:18   #27
Infinisearch
Junior Member
 
Join Date: Jul 2004
Location: USA
Posts: 65
Default

Quote:
Ways to Get Video Memory
There are several ways to get the video memory size on a system. This sample demonstrates 5 methods. The first 4 are available on Windows XP or later, while DXGI is only available on Windows Vista or later.

GetVideoMemoryViaDirectDraw: This method queries the DirectDraw 7 interfaces for the amount of available video memory. On a discrete video card, this is often close to the amount of dedicated video memory and usually does not take into account the amount of shared system memory.

GetVideoMemoryViaWMI: This method queries the Windows Management Instrumentation (WMI) interfaces to determine the amount of video memory. On a discrete video card, this is often close to the amount of dedicated video memory and usually does not take into account the amount of shared system memory.

GetVideoMemoryViaDxDiag: DxDiag internally uses both DirectDraw 7 and WMI and returns the rounded WMI value if WMI is available. Otherwise, it returns a rounded DirectDraw 7 value.

GetVideoMemoryViaD3D9: This method queries D3D9 for the amount of available texture memory. On Windows Vista, this number is typically the dedicated video memory plus the shared system memory minus the amount of memory in use by textures and render targets.

GetVideoMemoryViaDXGI: DXGI is only available on Windows Vista or later. This method returns the amount of dedicated video memory, the amount of dedicated system memory, and the amount of shared system memory. DXGI is more reflective of the true system configuration than the previous 4 methods.

Best Practices
On Windows Vista or later, DXGI should always be used to query the available video memory.
I saw this in the DXSDK and thought of this thread, so I posted it. There is a sample executable that i ran and it returns the correct value (i have a one gig card)
If you have the DXSDK installed the exe is called videomemory and its in C:\Program Files\Microsoft DirectX SDK (June 2010)\Samples\C++\Misc\Bin\x86>. Run it from the command prompt.

Last edited by Infinisearch; 27-Oct-2011 at 12:33.
Infinisearch is offline   Reply With Quote
Old 27-Oct-2011, 21:38   #28
MDolenc
Member
 
Join Date: May 2002
Location: Slovenia
Posts: 420
Default

Quote:
Originally Posted by Davros View Post
perhaps gpu-z is querying the video bios somehow
When all else fails: use NVAPI (or AMD equivalent). Since it can figure out SLI details that's the obvious choice. And atleast NVAPI does report this.
MDolenc is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:31.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.