Get total VRAM value
Posted: June 16th, 2020, 4:05 pm
Back in 2017 i needed to know the total video memory available for a monitoring skin.
Proved to be impossible with a wmic command becasue the Windows utilities have not been updated to 64-bit so can't show more than 4GB.
But i have recently learned that there's a Registry key that contains the value called HardwareInformation.qwMemorySize.
Inside the key there's other goodies too like GPU name and such.
Proved to be impossible with a wmic command becasue the Windows utilities have not been updated to 64-bit so can't show more than 4GB.
But i have recently learned that there's a Registry key that contains the value called HardwareInformation.qwMemorySize.
Inside the key there's other goodies too like GPU name and such.
Code: Select all
[mVramTotal1]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000
RegValue=HardwareInformation.qwMemorySize
UpdateDivider=-1
[mVramTotal2]
Measure=Calc
Formula=mVramTotal1/1073741824
UpdateDivider=-1
[mVRAMUsed1]
Measure=Plugin
Plugin=UsageMonitor
Alias=VRAM
Index=0
MinValue=0
MaxValue=(#VRAM#*1073741824)
[mVRAMUsed2]
Measure=Calc
Formula=mVRAMUsed1
[mVramFree]
Measure=Calc
Formula=(mVramTotal2-(mVRAMUsed2/1073741824))