Free, open-source Windows optimization tool for performance, privacy, and simplicity.
C# csharpdebloatdotnetgamingopen-sourceoptimizationoptimizeroptimizerduckperformanceprivacytweakertweakswindowswinui
fix: fix build warnings
fatDuckb2e59b7f012a
diff --git a/optimizerDuck/Core/Models/Revert/Steps/RegistryRevertStep.cs b/optimizerDuck/Core/Models/Revert/Steps/RegistryRevertStep.csindex 1a744af..aca9b02 100644--- a/optimizerDuck/Core/Models/Revert/Steps/RegistryRevertStep.cs+++ b/optimizerDuck/Core/Models/Revert/Steps/RegistryRevertStep.cs@@ -68,12 +68,12 @@ public class RegistryRevertStep : IRevertStepvar result = Action switch{RevertAction.NoPreviousValue =>- RegistryService.DeleteValue(new RegistryItem(Path, Name)),+ RegistryService.DeleteValue(new RegistryItem(Path, Name!)),RevertAction.RestorePrevious =>Value == null- ? RegistryService.DeleteValue(new RegistryItem(Path, Name))- : RegistryService.Write(new RegistryItem(Path, Name, Value, Kind)),+ ? RegistryService.DeleteValue(new RegistryItem(Path, Name!))+ : RegistryService.Write(new RegistryItem(Path, Name!, Value, Kind)),RevertAction.RestoreKey =>RegistryService.CreateSubKey(new RegistryItem(Path)),diff --git a/optimizerDuck/Core/Optimizers/PowerManagement.cs b/optimizerDuck/Core/Optimizers/PowerManagement.csindex 004b212..d13fd86 100644--- a/optimizerDuck/Core/Optimizers/PowerManagement.cs+++ b/optimizerDuck/Core/Optimizers/PowerManagement.cs@@ -165,7 +165,7 @@ public class PowerManagement : IOptimizationCategory}}- [Optimization(Id = "D2392F86-2B35-4BA2-939B-6FF38EE18EE6", Risk = OptimizationRisk.Moderate,+ [Optimization(Id = "D2392F86-2B35-4BA2-939B-6FF38EE18EE6", Risk = OptimizationRisk.Safe,Tags = OptimizationTags.Power | OptimizationTags.Performance | OptimizationTags.System)]public class DisablePowerSaving : BaseOptimization{@@ -175,10 +175,6 @@ public class PowerManagement : IOptimizationCategoryRegistryService.Write(new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\USB\AutomaticSurpriseRemoval","AttemptRecoveryFromUsbPowerDrain", 0),- new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile",- "NoLazyMode", 1),- new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile",- "AlwaysOn", 1),new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling", "PowerThrottlingOff",1));@@ -186,4 +182,22 @@ public class PowerManagement : IOptimizationCategoryreturn Task.FromResult(ApplyResult.True());}}++ [Optimization(Id = "C24B2B0E-A66D-43D0-8B4E-30550D107A68", Risk = OptimizationRisk.Safe,+ Tags = OptimizationTags.Performance | OptimizationTags.Latency | OptimizationTags.Audio)]+ public class OptimizeMultimediaProfile : BaseOptimization+ {+ public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress,+ OptimizationContext context)+ {+ RegistryService.Write(+ new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile",+ "NoLazyMode", 1),+ new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile",+ "AlwaysOn", 1)+ );+ context.Logger.LogInformation("Optimized multimedia profile settings");+ return Task.FromResult(ApplyResult.True());+ }+ }}\ No newline at end of filediff --git a/optimizerDuck/Resources/Languages/Translations.Designer.cs b/optimizerDuck/Resources/Languages/Translations.Designer.csindex fee760e..7e51c06 100644--- a/optimizerDuck/Resources/Languages/Translations.Designer.cs+++ b/optimizerDuck/Resources/Languages/Translations.Designer.cs@@ -2457,7 +2457,7 @@ namespace optimizerDuck.Resources.Languages {}/// <summary>- /// Looks up a localized string similar to Optimize Multimedia Response.+ /// Looks up a localized string similar to Multimedia & Network Responsiveness./// </summary>internal static string Optimizer_Performance_MultimediaResponsiveness_Name {get {@@ -2466,7 +2466,7 @@ namespace optimizerDuck.Resources.Languages {}/// <summary>- /// Looks up a localized string similar to Reduces latency for audio, video, and network tasks to improve real-time media and gaming performance..+ /// Looks up a localized string similar to Prioritizes system resources for multimedia and gaming by reducing background CPU reservation and disabling network throttling for lower latency../// </summary>internal static string Optimizer_Performance_MultimediaResponsiveness_ShortDescription {get {@@ -2655,6 +2655,24 @@ namespace optimizerDuck.Resources.Languages {}}+ /// <summary>+ /// Looks up a localized string similar to Optimize Multimedia Profile.+ /// </summary>+ internal static string Optimizer_PowerManagement_OptimizeMultimediaProfile_Name {+ get {+ return ResourceManager.GetString("Optimizer.PowerManagement.OptimizeMultimediaProfile.Name", resourceCulture);+ }+ }++ /// <summary>+ /// Looks up a localized string similar to Configures the multimedia system profile to prioritize performance and disable lazy mode for better responsiveness..+ /// </summary>+ internal static string Optimizer_PowerManagement_OptimizeMultimediaProfile_ShortDescription {+ get {+ return ResourceManager.GetString("Optimizer.PowerManagement.OptimizeMultimediaProfile.ShortDescription", resourceCulture);+ }+ }+/// <summary>/// Looks up a localized string similar to Security & Privacy./// </summary>@@ -2719,7 +2737,7 @@ namespace optimizerDuck.Resources.Languages {}/// <summary>- /// Looks up a localized string similar to Disable Ads & Suggestions.+ /// Looks up a localized string similar to Disable Cloud Content Delivery./// </summary>internal static string Optimizer_SecurityAndPrivacy_DisableContentDeliveryManager_Name {get {@@ -2728,7 +2746,7 @@ namespace optimizerDuck.Resources.Languages {}/// <summary>- /// Looks up a localized string similar to Blocks Windows from automatically installing promoted apps (bloatware) and showing suggestions in the Start menu..+ /// Looks up a localized string similar to Turns off Windows cloud-delivered content, including system tips, spotlight suggestions, and automatic delivery of consumer features../// </summary>internal static string Optimizer_SecurityAndPrivacy_DisableContentDeliveryManager_ShortDescription {get {diff --git a/optimizerDuck/Resources/Languages/Translations.resx b/optimizerDuck/Resources/Languages/Translations.resxindex 08d358c..fc39110 100644--- a/optimizerDuck/Resources/Languages/Translations.resx+++ b/optimizerDuck/Resources/Languages/Translations.resx@@ -606,10 +606,10 @@ Current version: {0}</value><value>Assigns high priority to gaming workloads to ensure consistent frames per second (FPS) and smoother gameplay.</value></data><data name="Optimizer.Performance.MultimediaResponsiveness.Name" xml:space="preserve">- <value>Optimize Multimedia Response</value>+ <value>Multimedia & Network Responsiveness</value></data><data name="Optimizer.Performance.MultimediaResponsiveness.ShortDescription" xml:space="preserve">- <value>Reduces latency for audio, video, and network tasks to improve real-time media and gaming performance.</value>+ <value>Prioritizes system resources for multimedia and gaming by reducing background CPU reservation and disabling network throttling for lower latency.</value></data><data name="Optimizer.Performance.KeyboardLatencyOptimization.Name" xml:space="preserve"><value>Optimize Keyboard Response</value>@@ -647,6 +647,12 @@ Current version: {0}</value><data name="Optimizer.PowerManagement.DisablePowerSaving.ShortDescription" xml:space="preserve"><value>Prevents Windows from limiting CPU performance (Power Throttling) to maintain peak power for active tasks.</value></data>+ <data name="Optimizer.PowerManagement.OptimizeMultimediaProfile.Name" xml:space="preserve">+ <value>Optimize Multimedia Profile</value>+ </data>+ <data name="Optimizer.PowerManagement.OptimizeMultimediaProfile.ShortDescription" xml:space="preserve">+ <value>Configures the multimedia system profile to prioritize performance and disable lazy mode for better responsiveness.</value>+ </data><data name="Optimizer.SecurityAndPrivacy.DisableUAC.Name" xml:space="preserve"><value>Disable Admin Prompts (UAC)</value></data>@@ -711,10 +717,10 @@ Current version: {0}</value><value>Removes the AI Copilot assistant from the taskbar and system shell to free up memory and screen space.</value></data><data name="Optimizer.SecurityAndPrivacy.DisableContentDeliveryManager.Name" xml:space="preserve">- <value>Disable Ads & Suggestions</value>+ <value>Disable Cloud Content Delivery</value></data><data name="Optimizer.SecurityAndPrivacy.DisableContentDeliveryManager.ShortDescription" xml:space="preserve">- <value>Blocks Windows from automatically installing promoted apps (bloatware) and showing suggestions in the Start menu.</value>+ <value>Turns off Windows cloud-delivered content, including system tips, spotlight suggestions, and automatic delivery of consumer features.</value></data><data name="Optimizer.BloatwareAndServices.DisablePreinstalledApps.Name" xml:space="preserve"><value>Block Preinstalled Bloatware</value>diff --git a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx b/optimizerDuck/Resources/Languages/Translations.vi-VN.resxindex d459a9e..daf6795 100644--- a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx+++ b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx@@ -600,10 +600,10 @@ Phiên bản hiện tại: {0} </value><value>Cấu hình hồ sơ tác vụ MMCSS "Games" với danh mục lập lịch High và mức ưu tiên GPU/IO cao để đảm bảo frame pacing ổn định.</value></data><data name="Optimizer.Performance.MultimediaResponsiveness.Name" xml:space="preserve">- <value>Tối ưu hóa phản hồi đa phương tiện</value>+ <value>Độ phản hồi Đa phương tiện & Mạng</value></data><data name="Optimizer.Performance.MultimediaResponsiveness.ShortDescription" xml:space="preserve">- <value>Giảm thiểu độ trễ MMCSS bằng cách đặt SystemResponsiveness thành 10 và vô hiệu hóa điều tiết mạng (0xFFFFFFFF) cho các tác vụ thời gian thực.</value>+ <value>Ưu tiên tài nguyên hệ thống cho đa phương tiện và trò chơi bằng cách giảm mức dự phòng CPU cho tác vụ nền và tắt giới hạn băng thông mạng để giảm độ trễ.</value></data><data name="Optimizer.Performance.KeyboardLatencyOptimization.Name" xml:space="preserve"><value>Tối ưu hóa độ trễ bàn phím</value>@@ -641,6 +641,12 @@ Phiên bản hiện tại: {0} </value><data name="Optimizer.PowerManagement.DisablePowerSaving.ShortDescription" xml:space="preserve"><value>Ngăn Windows tự động giảm hiệu năng CPU (Power Throttling) để duy trì sức mạnh tối đa cho hệ thống.</value></data>+ <data name="Optimizer.PowerManagement.OptimizeMultimediaProfile.Name" xml:space="preserve">+ <value>Tối ưu hóa Multimedia Profile</value>+ </data>+ <data name="Optimizer.PowerManagement.OptimizeMultimediaProfile.ShortDescription" xml:space="preserve">+ <value>Cấu hình profile hệ thống multimedia để ưu tiên hiệu suất và tắt lazy mode để có độ phản hồi tốt hơn.</value>+ </data><data name="Optimizer.SecurityAndPrivacy.DisableUAC.Name" xml:space="preserve"><value>Vô hiệu hóa xác nhận Admin (UAC)</value></data>@@ -705,10 +711,10 @@ Phiên bản hiện tại: {0} </value><value>Gỡ bỏ trợ lý AI Copilot khỏi thanh tác vụ và hệ thống để tiết kiệm dung lượng RAM.</value></data><data name="Optimizer.SecurityAndPrivacy.DisableContentDeliveryManager.Name" xml:space="preserve">- <value>Vô hiệu hóa quảng cáo & gợi ý</value>+ <value>Tắt Phân phối Nội dung Đám mây</value></data><data name="Optimizer.SecurityAndPrivacy.DisableContentDeliveryManager.ShortDescription" xml:space="preserve">- <value>Chặn Windows tự động cài đặt ứng dụng quảng cáo và gợi ý nội dung trên màn hình Start.</value>+ <value>Vô hiệu hóa các nội dung được phân phối qua đám mây của Windows, bao gồm các mẹo hệ thống, gợi ý tiêu điểm (spotlight) và các tính năng tiêu dùng tự động.</value></data><data name="Optimizer.BloatwareAndServices.DisablePreinstalledApps.Name" xml:space="preserve"><value>Chặn ứng dụng rác cài sẵn</value>