From 778011c12ae7905173e02665f397a96686863b89 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Wed, 19 May 2021 19:26:23 +0100 Subject: [PATCH] Remove ForceDedicatedGpu, as the driver utilities will now do that. --- Ryujinx.Common/System/ForceDedicatedGpu.cs | 16 ---------------- Ryujinx/Program.cs | 3 --- 2 files changed, 19 deletions(-) delete mode 100644 Ryujinx.Common/System/ForceDedicatedGpu.cs diff --git a/Ryujinx.Common/System/ForceDedicatedGpu.cs b/Ryujinx.Common/System/ForceDedicatedGpu.cs deleted file mode 100644 index 60272f1afa..0000000000 --- a/Ryujinx.Common/System/ForceDedicatedGpu.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Runtime.InteropServices; - -namespace Ryujinx.Common.System -{ - public static class ForceDedicatedGpu - { - public static void Nvidia() - { - if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) - { - // NOTE: If the DLL exists, we can load it to force the usage of the dedicated Nvidia Gpu. - NativeLibrary.TryLoad("nvapi64.dll", out _); - } - } - } -} \ No newline at end of file diff --git a/Ryujinx/Program.cs b/Ryujinx/Program.cs index db31a2e563..b1fe41a7da 100644 --- a/Ryujinx/Program.cs +++ b/Ryujinx/Program.cs @@ -137,9 +137,6 @@ namespace Ryujinx // Logging system information. PrintSystemInfo(); - // Force dedicated GPU if we can. - ForceDedicatedGpu.Nvidia(); - // Enable OGL multithreading on the driver, when available. DriverUtilities.ToggleOGLThreading(true);