Is there an easy and reliable way to get the total amount of the physical GPU memory?
I have tried this, but the problem is it returns 4096MB and I'm using a GTX 780 with 6144MB, so yeah not displaying correctly.
Code:
using System.Management;
private void getGpuMem()
{
ManagementClass c = new ManagementClass("Win32_VideoController");
foreach (ManagementObject o in c.GetInstances())
{
string gpuTotalMem = String.Format("{0} ", o["AdapterRam"]);
Debug.Write(gpuTotalMem);
}
}