mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Dynamic boost https://github.com/seerge/g-helper/issues/1786 https://github.com/seerge/g-helper/issues/1806
This commit is contained in:
@@ -378,6 +378,15 @@ public static class AppConfig
|
|||||||
return ContainsModel("X13");
|
return ContainsModel("X13");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool DynamicBoost5()
|
||||||
|
{
|
||||||
|
return ContainsModel("GZ301ZE");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool DynamicBoost15()
|
||||||
|
{
|
||||||
|
return ContainsModel("FX507ZC4");
|
||||||
|
}
|
||||||
|
|
||||||
public static bool IsAdvantageEdition()
|
public static bool IsAdvantageEdition()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ public class AsusACPI
|
|||||||
public const int DefaultCPU = 80;
|
public const int DefaultCPU = 80;
|
||||||
|
|
||||||
public const int MinGPUBoost = 5;
|
public const int MinGPUBoost = 5;
|
||||||
public const int MaxGPUBoost = 25;
|
public static int MaxGPUBoost = 25;
|
||||||
|
|
||||||
public const int MinGPUTemp = 75;
|
public const int MinGPUTemp = 75;
|
||||||
public const int MaxGPUTemp = 87;
|
public const int MaxGPUTemp = 87;
|
||||||
@@ -242,7 +242,11 @@ public class AsusACPI
|
|||||||
Logger.WriteLine($"Can't connect to ACPI: {ex.Message}");
|
Logger.WriteLine($"Can't connect to ACPI: {ex.Message}");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AppConfig.IsAdvantageEdition()) MaxTotal = 250;
|
if (AppConfig.IsAdvantageEdition())
|
||||||
|
{
|
||||||
|
MaxTotal = 250;
|
||||||
|
}
|
||||||
|
|
||||||
if (AppConfig.IsX13())
|
if (AppConfig.IsX13())
|
||||||
{
|
{
|
||||||
MaxTotal = 75;
|
MaxTotal = 75;
|
||||||
@@ -255,6 +259,15 @@ public class AsusACPI
|
|||||||
DefaultTotal = 30;
|
DefaultTotal = 30;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (AppConfig.DynamicBoost5())
|
||||||
|
{
|
||||||
|
MaxGPUBoost = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (AppConfig.DynamicBoost15())
|
||||||
|
{
|
||||||
|
MaxGPUBoost = 15;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Control(uint dwIoControlCode, byte[] lpInBuffer, byte[] lpOutBuffer)
|
public void Control(uint dwIoControlCode, byte[] lpInBuffer, byte[] lpOutBuffer)
|
||||||
|
|||||||
Reference in New Issue
Block a user