mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
perf: PerformanceUseGpu 读取替换
This commit is contained in:
@@ -414,12 +414,11 @@ namespace MaaWpfGui.Helper
|
||||
|
||||
public static GpuOption GetCurrent()
|
||||
{
|
||||
bool.TryParse(ConfigurationHelper.GetValue(ConfigurationKeys.PerformanceUseGpu, "false"), out var useGpu);
|
||||
var preferredGpuInstancePath = ConfigurationHelper.GetValue(ConfigurationKeys.PerformancePreferredGpuInstancePath, string.Empty);
|
||||
var preferredGpuDescription = ConfigurationHelper.GetValue(ConfigurationKeys.PerformancePreferredGpuDescription, string.Empty);
|
||||
|
||||
GpuOption result;
|
||||
if (useGpu)
|
||||
if (ConfigurationHelper.GetValue(ConfigurationKeys.PerformanceUseGpu, false))
|
||||
{
|
||||
var options = GetGpuOptions();
|
||||
if (ReferenceEquals(options, _unavailableOptions))
|
||||
|
||||
Reference in New Issue
Block a user