mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Dynamic Boost for GU605
This commit is contained in:
@@ -474,6 +474,11 @@ public static class AppConfig
|
|||||||
return ContainsModel("FX507ZC4");
|
return ContainsModel("FX507ZC4");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool DynamicBoost20()
|
||||||
|
{
|
||||||
|
return ContainsModel("GU605");
|
||||||
|
}
|
||||||
|
|
||||||
public static bool IsAdvantageEdition()
|
public static bool IsAdvantageEdition()
|
||||||
{
|
{
|
||||||
return ContainsModel("13QY");
|
return ContainsModel("13QY");
|
||||||
|
|||||||
@@ -303,6 +303,11 @@ public class AsusACPI
|
|||||||
MaxGPUBoost = 15;
|
MaxGPUBoost = 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (AppConfig.DynamicBoost20())
|
||||||
|
{
|
||||||
|
MaxGPUBoost = 20;
|
||||||
|
}
|
||||||
|
|
||||||
if (AppConfig.IsAMDLight())
|
if (AppConfig.IsAMDLight())
|
||||||
{
|
{
|
||||||
MaxTotal = 90;
|
MaxTotal = 90;
|
||||||
|
|||||||
@@ -527,13 +527,15 @@ namespace GHelper
|
|||||||
private void InitGPUPower()
|
private void InitGPUPower()
|
||||||
{
|
{
|
||||||
gpuPowerBase = Program.acpi.DeviceGet(AsusACPI.GPU_BASE);
|
gpuPowerBase = Program.acpi.DeviceGet(AsusACPI.GPU_BASE);
|
||||||
|
Logger.WriteLine($"ReadGPUPowerBase: {gpuPowerBase}");
|
||||||
|
|
||||||
panelGPUPower.Visible = isGPUPower;
|
panelGPUPower.Visible = isGPUPower;
|
||||||
if (!isGPUPower) return;
|
if (!isGPUPower) return;
|
||||||
|
|
||||||
int maxGPUPower = NvidiaSmi.GetMaxGPUPower();
|
int maxGPUPower = NvidiaSmi.GetMaxGPUPower();
|
||||||
if (maxGPUPower > 0)
|
if (maxGPUPower > 0)
|
||||||
{
|
{
|
||||||
AsusACPI.MaxGPUPower = maxGPUPower - gpuPowerBase - 15;
|
AsusACPI.MaxGPUPower = maxGPUPower - gpuPowerBase - AsusACPI.MaxGPUBoost;
|
||||||
trackGPUPower.Minimum = AsusACPI.MinGPUPower;
|
trackGPUPower.Minimum = AsusACPI.MinGPUPower;
|
||||||
trackGPUPower.Maximum = AsusACPI.MaxGPUPower;
|
trackGPUPower.Maximum = AsusACPI.MaxGPUPower;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user