Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jp7677/dxvk-nvapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Peters <jp7677@gmail.com>2022-07-01 12:51:29 +0300
committerJens Peters <jp7677@gmail.com>2022-07-01 12:51:29 +0300
commitfd28eb2d55dbe6320be45dea245cf7e1279c7011 (patch)
treea4dfc5a5a4c9677f1ef7dbe67870e38ae557c2e7
parentf630dbdbb0f778b17a436bf65845d62acce869af (diff)
tests: Show video engine utilization
-rw-r--r--tests/nvapi_system.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/nvapi_system.cpp b/tests/nvapi_system.cpp
index 28d5f11..1d22964 100644
--- a/tests/nvapi_system.cpp
+++ b/tests/nvapi_system.cpp
@@ -249,6 +249,12 @@ TEST_CASE("Sysinfo methods succeed against local system", "[system]") {
else
std::cout << "N/A" << std::endl;
+ std::cout << " Current video utilization: ";
+ if (result == NVAPI_OK)
+ std::cout << std::dec << info.utilization[2].percentage << "%" << std::endl;
+ else
+ std::cout << "N/A" << std::endl;
+
NV_GPU_THERMAL_SETTINGS settings;
settings.version = NV_GPU_THERMAL_SETTINGS_VER;
result = nvAPI_GPU_GetThermalSettings(handle, NVAPI_THERMAL_TARGET_ALL, &settings);