I am developing a .net core application where I need to retrieve as much information about the system as possible. I have managed to retrieve already a lot, however, I am struggling to find out whether the GPU has Vsync turned on or not. I have tried the NvApi Wrapper for an Nvidia GPU but couldn't get it working as it throws an exception when trying to initialize it (could not load nvapi64.dll). The original NvApi is written in C and making a Wrapper just for this one specific thing seems a bit too much. I guess there must be an easier way to get this information.
I have also tried to get the value using the ManagementObjectSearcher
as shown below but it doesn't return whether vsync is active or not:
var managementObjectSearcher = new ManagementObjectSearcher("select * from Win32_VideoController");
foreach (ManagementObject obj in managementObjectSearcher.Get())
{
foreach(var prop in obj.Properties)
{
Console.WriteLine($"Name: {prop.Name} Value: {prop.Value}");
}
}