Beispiel #1
0
        public void UpdateGpuInfo()
        {
            int temp = (int)gpu.GetTemerature();

            if (temp > GpuTempCritical)
            {
                if (count++ > 10)
                {
                    count = 0;
                    if (GpuCriticalTemperature != null)
                    {
                        GpuCriticalTemperature(this, new EventArgs());
                    }
                }
            }
            else
            {
                count = 0;
            }
            gpuTemp              = temp.ToString() + " °C";
            x1.Text              = "Memory : " + gpu.GetGpuMemoryTotal() + " MB";
            x2.Text              = "Av. Memory : " + Math.Round(gpu.GetGpuMemoryAvailable(), 2).ToString() + " MB";
            x3.Text              = "Clock : " + (int)gpu.GetGpuClock() + " MHz";
            TempGpu.Value        = temp;
            TempGpu.TextInCenter = GpuTemp;
            gpuClock             = ((int)gpu.GetGpuClock()).ToString() + " MHz";
        }