Free, open-source Windows optimization tool for performance, privacy, and simplicity.
C# csharpdebloatdotnetgamingopen-sourceoptimizationoptimizeroptimizerduckperformanceprivacytweakertweakswindowswinui
refactor(optimizations): restructure and enhance optimization groups
itsfatduck295927beb6d0
diff --git a/optimizerDuck/Program.cs b/optimizerDuck/Program.csindex 6c5cc6e..5032205 100644--- a/optimizerDuck/Program.cs+++ b/optimizerDuck/Program.cs@@ -86,7 +86,7 @@ internal class Program_systemSnapshot = await SystemInfoService.RefreshAsync().ConfigureAwait(false);Log.LogDebug("=== System Information ===");- SystemInfoService.GetSummary(_systemSnapshot, Log);+ SystemInfoService.GetSummary(Log);Log.LogDebug("==========================");ctx.Status("Checking and creating necessary paths...");diff --git a/optimizerDuck/src/Core/Helpers/SystemHelper.cs b/optimizerDuck/src/Core/Helpers/SystemHelper.csindex 7d2cd19..c4995e9 100644--- a/optimizerDuck/src/Core/Helpers/SystemHelper.cs+++ b/optimizerDuck/src/Core/Helpers/SystemHelper.cs@@ -46,6 +46,11 @@ public static class SystemHelper});}+ public static bool IsWindows11OrGreater()+ {+ return int.TryParse(SystemInfoService.Snapshot.Os.Version, out var v) && v >= 11;+ }+public static void Title(string title){Console.Title = $"optimizerDuck [{Defaults.FileVersion}] - {title}";diff --git a/optimizerDuck/src/Core/Managers/OptimizationManager.cs b/optimizerDuck/src/Core/Managers/OptimizationManager.csindex 3118384..4bb67a9 100644--- a/optimizerDuck/src/Core/Managers/OptimizationManager.cs+++ b/optimizerDuck/src/Core/Managers/OptimizationManager.cs@@ -72,7 +72,7 @@ public class OptimizationManager(SystemSnapshot systemSnapshot)}).ToList();- groups.Add(new OptimizationGroupChoice(groupInstance.Name, groupInstance.Priority, tweakChoices));+ groups.Add(new OptimizationGroupChoice(groupInstance.Name, groupInstance.Order, tweakChoices));}var orderedGroups = groups.OrderBy(g => g.Priority).ToList();diff --git a/optimizerDuck/src/Core/Optimizers/BloatwareAndServices.cs b/optimizerDuck/src/Core/Optimizers/BloatwareAndServices.csindex 97c323d..6bc7fc4 100644--- a/optimizerDuck/src/Core/Optimizers/BloatwareAndServices.cs+++ b/optimizerDuck/src/Core/Optimizers/BloatwareAndServices.cs@@ -10,7 +10,7 @@ namespace optimizerDuck.Core.Optimizers;public class BloatwareAndServices : IOptimizationGroup{public string Name { get; } = "Bloatware & Services";- public int Priority { get; } = (int)OptimizationGroupPriority.BloatwareAndServices;+ public int Order { get; } = (int)OptimizationGroupOrder.BloatwareAndServices;public static ILogger Log { get; } = Logger.CreateLogger<BloatwareAndServices>();public class RemoveBloatwareApps : IOptimizationTweakdiff --git a/optimizerDuck/src/Core/Optimizers/GamingOptimizations.cs b/optimizerDuck/src/Core/Optimizers/Performance.cssimilarity index 64%rename from optimizerDuck/src/Core/Optimizers/GamingOptimizations.csrename to optimizerDuck/src/Core/Optimizers/Performance.csindex 90ea8cb..c5cbb1b 100644--- a/optimizerDuck/src/Core/Optimizers/GamingOptimizations.cs+++ b/optimizerDuck/src/Core/Optimizers/Performance.cs@@ -1,4 +1,6 @@using Microsoft.Extensions.Logging;+using Microsoft.Win32;+using optimizerDuck.Core.Helpers;using optimizerDuck.Core.Services;using optimizerDuck.Interfaces;using optimizerDuck.Models;@@ -6,11 +8,108 @@ using optimizerDuck.UI.Logger;namespace optimizerDuck.Core.Optimizers;-public class GamingOptimizations : IOptimizationGroup+public class Performance : IOptimizationGroup{- public string Name { get; } = "Gaming Optimizations";- public int Priority { get; } = (int)OptimizationGroupPriority.GamingOptimizations;- public static ILogger Log { get; } = Logger.CreateLogger<GamingOptimizations>();+ public string Name => "Performance";+ public int Order => (int)OptimizationGroupOrder.PerformanceAndPower;+ public static ILogger Log { get; } = Logger.CreateLogger<Performance>();++ public class BackgroundAppsTweak : IOptimizationTweak+ {+ public string Name { get; } = "Disable Background Apps";+ public string Description { get; } = "Disables background applications to free up resources.";+ public bool EnabledByDefault { get; } = true;++ public Task Apply(SystemSnapshot s)+ {+ RegistryService.Write(+ new RegistryItem(@"HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications", "GlobalUserDisabled", 1),+ new RegistryItem(@"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search", "BackgroundAppGlobalToggle", 0)+ );+ Log.LogInformation("Disabled background applications.");+ return Task.CompletedTask;+ }+ }++ public class ProcessPriorityTweak : IOptimizationTweak+ {+ public string Name { get; } = "Process Priority Optimization";+ public string Description { get; } = "Adjusts Win32PrioritySeparation for better foreground responsiveness.";+ public bool EnabledByDefault { get; } = true;++ public Task Apply(SystemSnapshot s)+ {+ /*+ ref: https://forums.blurbusters.com/viewtopic.php?t=8535+ 42 Dec, 2A Hex = Short, Fixed , High foreground boost.+ 41 Dec, 29 Hex = Short, Fixed , Medium foreground boost.+ 40 Dec, 28 Hex = Short, Fixed , No foreground boost.++ 38 Dec, 26 Hex = Short, Variable , High foreground boost.+ 37 Dec, 25 Hex = Short, Variable , Medium foreground boost.+ 36 Dec, 24 Hex = Short, Variable , No foreground boost.++ 26 Dec, 1A Hex = Long, Fixed, High foreground boost.+ 25 Dec, 19 Hex = Long, Fixed, Medium foreground boost.+ 24 Dec, 18 Hex = Long, Fixed, No foreground boost.++ 22 Dec, 16 Hex = Long, Variable, High foreground boost.+ 21 Dec, 15 Hex = Long, Variable, Medium foreground boost.+ 20 Dec, 14 Hex = Long, Variable, No foreground boost.+ */++ const int win32Priority = 38; // Short, Variable, High foreground boost+ RegistryService.Write(+ new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\PriorityControl", "Win32PrioritySeparation", win32Priority)+ );+ Log.LogInformation("Applied process priority tweak (Win32PrioritySeparation = {Value}).", win32Priority);+ return Task.CompletedTask;+ }+ }++ public class GameSchedulingTweak : IOptimizationTweak+ {+ public string Name { get; } = "Game Scheduling & Priority";+ public string Description { get; } = "Optimizes system profile and GPU scheduling for gaming performance.";+ public bool EnabledByDefault { get; } = true;++ public Task Apply(SystemSnapshot s)+ {+ RegistryService.Write(+ new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games", "Priority", 2),+ new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games", "Scheduling Category", "High"),+ new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games", "SFIO Priority", "High"),+ new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games", "GPU Priority", 8),+ new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile", "NetworkThrottlingIndex", unchecked((int)0xFFFFFFFF), RegistryValueKind.DWord),+ new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile", "SystemResponsiveness", 10),+ new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers", "HwSchMode", 2)+ );+ Log.LogInformation("Applied gaming optimizations.");+ return Task.CompletedTask;+ }+ }++ public class SvcHostSplitTweak : IOptimizationTweak+ {+ public string Name { get; } = "SvcHost Split Threshold";+ public string Description { get; } = "Adjusts SvcHostSplitThresholdInKB based on total system RAM.";+ public bool EnabledByDefault { get; } = true;++ public Task Apply(SystemSnapshot s)+ {+ if (s.Ram.TotalKB > 0)+ {+ RegistryService.Write(+ new RegistryItem(@"HKLM\SYSTEM\ControlSet001\Control", "SvcHostSplitThresholdInKB", s.Ram.TotalKB, RegistryValueKind.DWord)+ );+ Log.LogInformation("Set SvcHostSplitThresholdInKB to {Value}.", s.Ram.TotalKB);+ }+ return Task.CompletedTask;+ }+ }+++public class DisableGameBar : IOptimizationTweak{@@ -36,6 +135,29 @@ public class GamingOptimizations : IOptimizationGroup}}+ public class GameModeTweak : IOptimizationTweak+ {+ public string Name { get; } = "Enable Game Mode";+ public string Description { get; } = "Enables Windows Game Mode (RECOMMENDED for Windows 11+).";+ public bool EnabledByDefault { get; }++ public GameModeTweak()+ {+ EnabledByDefault = SystemHelper.IsWindows11OrGreater();+ }++ public Task Apply(SystemSnapshot s)+ {+ RegistryService.Write(+ new RegistryItem(@"HKCU\Software\Microsoft\GameBar", "AllowAutoGameMode", 1),+ new RegistryItem(@"HKCU\Software\Microsoft\GameBar", "AutoGameModeEnabled", 1)+ );+ Log.LogInformation("Enabled Game Mode.");++ return Task.CompletedTask;+ }+ }+public class DisableGameDVR : IOptimizationTweak{public string Name { get; } = "Disable Game DVR";diff --git a/optimizerDuck/src/Core/Optimizers/PerformanceAndPower.cs b/optimizerDuck/src/Core/Optimizers/Power.cssimilarity index 54%rename from optimizerDuck/src/Core/Optimizers/PerformanceAndPower.csrename to optimizerDuck/src/Core/Optimizers/Power.csindex 70cb648..2c9fb14 100644--- a/optimizerDuck/src/Core/Optimizers/PerformanceAndPower.cs+++ b/optimizerDuck/src/Core/Optimizers/Power.cs@@ -1,5 +1,4 @@using Microsoft.Extensions.Logging;-using Microsoft.Win32;using optimizerDuck.Core.Helpers;using optimizerDuck.Core.Services;using optimizerDuck.Interfaces;@@ -9,99 +8,68 @@ using optimizerDuck.UI.Logger;namespace optimizerDuck.Core.Optimizers;-public class PerformanceAndPower : IOptimizationGroup+public class Power : IOptimizationGroup{- public string Name => "Performance & Power";- public int Priority => (int)OptimizationGroupPriority.PerformanceAndPower;- public static ILogger Log { get; } = Logger.CreateLogger<PerformanceAndPower>();+ public string Name { get; } = "Power";+ public int Order { get; } = (int)OptimizationGroupOrder.GamingOptimizations;+ public static ILogger Log { get; } = Logger.CreateLogger<Power>();- public class PerformanceTweaks : IOptimizationTweak++ public class DisableHibernateTweak : IOptimizationTweak{- public string Name { get; } = "Performance Tweaks";+ public string Name { get; } = "Disable Hibernate";public string Description { get; } =- "Applies performance tweaks to optimize Windows for speed, responsiveness, and smoother gaming";+ "Disables hibernate, fast startup, and removes hibernate option from power menu.";public bool EnabledByDefault { get; } = true;public Task Apply(SystemSnapshot s){RegistryService.Write(- new RegistryItem(- @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications",- "GlobalUserDisabled", 1),- new RegistryItem(@"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search", "BackgroundAppGlobalToggle",- 0)+ new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\Power", "HibernateEnabled", 0),+ new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling",+ "HibernateEnabledDefault", 0),+ new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings",+ "ShowHibernateOption", 0),+ new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power", "HiberbootEnabled", 0));- Log.LogInformation("Disabled background applications");-- /*- ref: https://forums.blurbusters.com/viewtopic.php?t=8535- 42 Dec, 2A Hex = Short, Fixed , High foreground boost.- 41 Dec, 29 Hex = Short, Fixed , Medium foreground boost.- 40 Dec, 28 Hex = Short, Fixed , No foreground boost.-- 38 Dec, 26 Hex = Short, Variable , High foreground boost.- 37 Dec, 25 Hex = Short, Variable , Medium foreground boost.- 36 Dec, 24 Hex = Short, Variable , No foreground boost.-- 26 Dec, 1A Hex = Long, Fixed, High foreground boost.- 25 Dec, 19 Hex = Long, Fixed, Medium foreground boost.- 24 Dec, 18 Hex = Long, Fixed, No foreground boost.- 22 Dec, 16 Hex = Long, Variable, High foreground boost.- 21 Dec, 15 Hex = Long, Variable, Medium foreground boost.- 20 Dec, 14 Hex = Long, Variable, No foreground boost.- */-- const int win32Priority = 38;+ Log.LogInformation("Disabled hibernate & fast startup.");+ return Task.CompletedTask;+ }+ }- RegistryService.Write(- new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\PriorityControl", "Win32PrioritySeparation",- win32Priority),- new RegistryItem(- @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games",- "Priority", 2),- new RegistryItem(- @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games",- "Scheduling Category", "High"),- new RegistryItem(- @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games",- "SFIO Priority", "High"),- new RegistryItem(- @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games",- "GPU Priority", 8),- new RegistryItem(- @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile",- "NetworkThrottlingIndex", unchecked((int)0xFFFFFFFF), RegistryValueKind.DWord),- new RegistryItem(- @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile",- "SystemResponsiveness", 10),- new RegistryItem(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers", "HwSchMode",- 2) // idk- );- Log.LogInformation("Applied performance tweaks.");+ public class DisableUSBPowerSaving : IOptimizationTweak+ {+ public string Name { get; } = "Disable USB Power Saving";- if (s.Ram.TotalKB > 0)- {- RegistryService.Write(new RegistryItem(@"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control",- "SvcHostSplitThresholdInKB", s.Ram.TotalKB, RegistryValueKind.DWord));- Log.LogInformation("Set SvcHostSplitThresholdInKB to {SvcHostSplitThresholdInKB}.", s.Ram.TotalKB);- }+ public string Description { get; } =+ "Disables USB selective suspend and other power management features that can cause input lag and performance drops";- if (int.TryParse(s.Os.Version, out var version) && version >= 11)- {- RegistryService.Write(- new RegistryItem(@"HKEY_CURRENT_USER\Software\Microsoft\GameBar", "AllowAutoGameMode", 1),- new RegistryItem(@"HKEY_CURRENT_USER\Software\Microsoft\GameBar", "AutoGameModeEnabled", 1)- );- Log.LogInformation("Enabled Game Mode.");- }+ public bool EnabledByDefault { get; } = true;+ public Task Apply(SystemSnapshot s)+ {+ using var tracker = ServiceTracker.Begin();+ //https://discord.com/channels/1298592513816530994/1359513721738629140/1359524213047824517+ //from FrameSync Labs+ ShellService.PowerShell("""+ $devicesUSB = Get-PnpDevice | where {$_.InstanceId -like "*USB\ROOT*"} |+ ForEach-Object -Process {+ Get-CimInstance -ClassName MSPower_DeviceEnable -Namespace root\wmi+ }+ foreach ( $device in $devicesUSB )+ {+ Set-CimInstance -Namespace root\wmi -Query "SELECT * FROM MSPower_DeviceEnable WHERE InstanceName LIKE '%$($device.PNPDeviceID)%'" -Property @{Enable=$False} -PassThru+ }+ """);+ Log.LogInformation("Disabled USB power saving.");return Task.CompletedTask;}}+public class InstallOptimizerDuckPowerPlan : IOptimizationTweak{public string Name { get; } = "Install optimizerDuck Power Plan";@@ -161,58 +129,4 @@ public class PerformanceAndPower : IOptimizationGroupreturn Task.CompletedTask;}}-- public class DisableHibernateTweak : IOptimizationTweak- {- public string Name { get; } = "Disable Hibernate";-- public string Description { get; } =- "Disables hibernate, fast startup, and removes hibernate option from power menu.";-- public bool EnabledByDefault { get; } = true;-- public Task Apply(SystemSnapshot s)- {- RegistryService.Write(- new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\Power", "HibernateEnabled", 0),- new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling",- "HibernateEnabledDefault", 0),- new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings",- "ShowHibernateOption", 0),- new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power", "HiberbootEnabled", 0)- );-- Log.LogInformation("Disabled hibernate & fast startup.");- return Task.CompletedTask;- }- }-- public class DisableUSBPowerSaving : IOptimizationTweak- {- public string Name { get; } = "Disable USB Power Saving";-- public string Description { get; } =- "Disables USB selective suspend and other power management features that can cause input lag and performance drops";-- public bool EnabledByDefault { get; } = true;-- public Task Apply(SystemSnapshot s)- {- using var tracker = ServiceTracker.Begin();- //https://discord.com/channels/1298592513816530994/1359513721738629140/1359524213047824517- //from FrameSync Labs- ShellService.PowerShell("""- $devicesUSB = Get-PnpDevice | where {$_.InstanceId -like "*USB\ROOT*"} |- ForEach-Object -Process {- Get-CimInstance -ClassName MSPower_DeviceEnable -Namespace root\wmi- }- foreach ( $device in $devicesUSB )- {- Set-CimInstance -Namespace root\wmi -Query "SELECT * FROM MSPower_DeviceEnable WHERE InstanceName LIKE '%$($device.PNPDeviceID)%'" -Property @{Enable=$False} -PassThru- }- """);- Log.LogInformation("Disabled USB power saving.");- return Task.CompletedTask;- }- }}\ No newline at end of filediff --git a/optimizerDuck/src/Core/Optimizers/SecurityAndPrivacy.cs b/optimizerDuck/src/Core/Optimizers/SecurityAndPrivacy.csindex 52d93a7..f9a4190 100644--- a/optimizerDuck/src/Core/Optimizers/SecurityAndPrivacy.cs+++ b/optimizerDuck/src/Core/Optimizers/SecurityAndPrivacy.cs@@ -9,7 +9,7 @@ namespace optimizerDuck.Core.Optimizers;public class SecurityAndPrivacy : IOptimizationGroup{public string Name => "Security & Privacy";- public int Priority => (int)OptimizationGroupPriority.SecurityAndPrivacy;+ public int Order => (int)OptimizationGroupOrder.SecurityAndPrivacy;public static ILogger Log { get; } = Logger.CreateLogger<SecurityAndPrivacy>();public class DisableUAC : IOptimizationTweakdiff --git a/optimizerDuck/src/Core/Optimizers/UserExperience.cs b/optimizerDuck/src/Core/Optimizers/UserExperience.csindex f6aa500..4ce40d9 100644--- a/optimizerDuck/src/Core/Optimizers/UserExperience.cs+++ b/optimizerDuck/src/Core/Optimizers/UserExperience.cs@@ -11,7 +11,7 @@ namespace optimizerDuck.Core.Optimizers;public class UserExperience : IOptimizationGroup{public string Name { get; } = "User Experience";- public int Priority { get; } = (int)OptimizationGroupPriority.UserExperience;+ public int Order { get; } = (int)OptimizationGroupOrder.UserExperience;public static ILogger Log { get; } = Logger.CreateLogger<UserExperience>();public class TaskbarTweak : IOptimizationTweak@@ -212,8 +212,7 @@ public class UserExperience : IOptimizationGroupIf you have Windows Server 2022/Windows 11 you must have in your registry:[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel] "GlobalTimerResolutionRequests"=dword:00000001*/- if (int.TryParse(s.Os.Version, out var version) &&- version >= 11) // i dont check for server versions..................+ if (SystemHelper.IsWindows11OrGreater()) // i dont check for server versions..................RegistryService.Write(new RegistryItem(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel","GlobalTimerResolutionRequests", 1));diff --git a/optimizerDuck/src/Core/Services/SystemInfoService.cs b/optimizerDuck/src/Core/Services/SystemInfoService.csindex b42fa7c..d9bdae9 100644--- a/optimizerDuck/src/Core/Services/SystemInfoService.cs+++ b/optimizerDuck/src/Core/Services/SystemInfoService.cs@@ -553,25 +553,25 @@ public static class SystemInfoService}}- public static void GetSummary(SystemSnapshot s, ILogger log)+ public static void GetSummary(ILogger log){log.LogDebug("OS : {OsName} {OsEdition} {OsArchitecture} ({OsDeviceType})",- s.Os.Name, s.Os.Edition, s.Os.Architecture, s.Os.DeviceType);+ Snapshot.Os.Name, Snapshot.Os.Edition, Snapshot.Os.Architecture, Snapshot.Os.DeviceType);- LogGpuSummary(s, log);+ LogGpuSummary(log);log.LogDebug("CPU: {CpuName} ({CpuVendor}) [{CpuCores} Cores/{CpuThreads} Threads]",- s.Cpu.Name, s.Cpu.Vendor, s.Cpu.Cores, s.Cpu.Threads);+ Snapshot.Cpu.Name, Snapshot.Cpu.Vendor, Snapshot.Cpu.Cores, Snapshot.Cpu.Threads);log.LogDebug("RAM: {RamTotalGb:F1} GB (Used: {RamUsedPercent:F1}%)",- s.Ram.TotalGB, s.Ram.UsedPercent);+ Snapshot.Ram.TotalGB, Snapshot.Ram.UsedPercent);}- private static void LogGpuSummary(SystemSnapshot s, ILogger log)+ private static void LogGpuSummary(ILogger log){- var gpuCount = s.Gpus.Count;+ var gpuCount = Snapshot.Gpus.Count;- if (gpuCount == 0 || (gpuCount == 1 && s.Gpus[0] == GpuInfo.Unknown))+ if (gpuCount == 0 || (gpuCount == 1 && Snapshot.Gpus[0] == GpuInfo.Unknown)){log.LogDebug("GPU: None detected");return;@@ -579,20 +579,20 @@ public static class SystemInfoServiceif (gpuCount == 1){- var gpu = s.Gpus[0];+ var gpu = Snapshot.Gpus[0];var memoryInfo = gpu.MemoryMB.HasValue ? $" [{gpu.MemoryMB.Value / 1024.0:F0} GB]" : "";log.LogDebug("GPU: {GpuName} ({GpuVendor}){MemoryInfo}", gpu.Name, gpu.Vendor, memoryInfo);return;}// Multiple GPUs- if (s.PrimaryGpu != null)+ if (Snapshot.PrimaryGpu != null){- var memoryInfo = s.PrimaryGpu.MemoryMB.HasValue- ? $" [{s.PrimaryGpu.MemoryMB.Value / 1024.0:F0} GB]"+ var memoryInfo = Snapshot.PrimaryGpu.MemoryMB.HasValue+ ? $" [{Snapshot.PrimaryGpu.MemoryMB.Value / 1024.0:F0} GB]": "";log.LogDebug("GPU (Primary): {PrimaryGpuName} ({PrimaryGpuVendor}){MemoryInfo}",- s.PrimaryGpu.Name, s.PrimaryGpu.Vendor, memoryInfo);+ Snapshot.PrimaryGpu.Name, Snapshot.PrimaryGpu.Vendor, memoryInfo);}log.LogDebug("Total GPUs : {GpuCount}", gpuCount);diff --git a/optimizerDuck/src/Interfaces/IOptimizationGroup.cs b/optimizerDuck/src/Interfaces/IOptimizationGroup.csindex a60c157..f9600ee 100644--- a/optimizerDuck/src/Interfaces/IOptimizationGroup.cs+++ b/optimizerDuck/src/Interfaces/IOptimizationGroup.cs@@ -5,6 +5,6 @@ namespace optimizerDuck.Interfaces;public interface IOptimizationGroup{public string Name { get; }- public int Priority { get; }+ public int Order { get; }public static abstract ILogger Log { get; }}\ No newline at end of filediff --git a/optimizerDuck/src/Models/OptimizationGroupPriority.cs b/optimizerDuck/src/Models/OptimizationGroupOrder.cssimilarity index 80%rename from optimizerDuck/src/Models/OptimizationGroupPriority.csrename to optimizerDuck/src/Models/OptimizationGroupOrder.csindex 53d78be..5cd54d1 100644--- a/optimizerDuck/src/Models/OptimizationGroupPriority.cs+++ b/optimizerDuck/src/Models/OptimizationGroupOrder.cs@@ -1,6 +1,6 @@namespace optimizerDuck.Models;-public enum OptimizationGroupPriority+public enum OptimizationGroupOrder{SecurityAndPrivacy,PerformanceAndPower,