NV Clocks tweaks

This commit is contained in:
Serge
2023-05-11 19:38:53 +02:00
parent 35f1a3a25b
commit ca57669596
5 changed files with 38 additions and 17 deletions

View File

@@ -146,15 +146,23 @@ namespace GHelper
if (gpu_boost < 0) gpu_boost = ASUSWmi.MaxGPUBoost;
if (gpu_temp < 0) gpu_temp = ASUSWmi.MaxGPUTemp;
if (core == -1) core = 0;
if (memory == 1) memory = 0;
if (memory == -1) memory = 0;
if (readClocks)
//if (readClocks)
//{
int status = nvControl.GetClocks(out int current_core, out int current_memory);
if (status != -1)
{
nvControl.GetClocks(out core, out memory, out string gpuTitle);
labelGPU.Text = gpuTitle;
core = current_core;
memory = current_memory;
}
labelGPU.Text = nvControl.FullName;
//}
trackGPUCore.Value = Math.Max(Math.Min(core, NvidiaGpuControl.MaxCoreOffset), NvidiaGpuControl.MinCoreOffset);
trackGPUMemory.Value = Math.Max(Math.Min(memory, NvidiaGpuControl.MaxMemoryOffset), NvidiaGpuControl.MinMemoryOffset);