Graphics Card (GPU)
Graphics Processing Unit
SpecProbe can probe GPU information by calling the HardwareProber.Video
property. This populates the following values in accordance to the available information:
VideoCardName
Unavailable on systems that don't have glxinfo
and NVIDIA Proprietary Drivers installed
How parsing works
This section describes how parsing works for the below systems:
Linux
GPU information can only be obtained by executing the glxinfo
command with the -B
switch, indicating that we only need basic GPU info. However, this is guaranteed to be fast.
Once the glxinfo
command output is piped to the string, SpecProbe looks for the OpenGL renderer string
line and gets the GPU name from this entry as appropriate.
Windows
For Windows systems, it calls the native Windows API function EnumDisplayDevices()
to get all the video cards installed on your system.
macOS
For macOS systems, it first checks to see if your application is set to run in a hardened macOS runtime.
Hardened
If SpecProbe is told that your application is hardened, SpecProbe uses the CoreGraphics Quartz API to fetch the display information and get the model and the vendor numbers.
Not Hardened
If SpecProbe is told that your application is not hardened, SpecProbe uses the system_profile
application to get information about the display. It gets the Device ID
and the Vendor ID
.
Finally, SpecProbe merges these two IDs to create a single video card name.
Last updated