using CommonHelpers; using PowerControl.Helpers; using PowerControl.Helpers.AMD; using System.Diagnostics; using System.Runtime.InteropServices; namespace PowerControl { internal static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Instance.WithSentry(() => { if (Settings.Default.EnableExperimentalFeatures) { for (int i = 0; !VangoghGPU.IsSupported; i++) { Instance.WithGlobalMutex(1000, () => VangoghGPU.Detect()); if (VangoghGPU.IsSupported) Thread.Sleep(300); } } // To customize application configuration such as set high DPI settings or default font, // see https://aka.ms/applicationconfiguration. ApplicationConfiguration.Initialize(); using (var controller = new Controller()) { Application.Run(); } }); } } }