Răsfoiți Sursa

Remove ForceDedicatedGpu, as the driver utilities will now do that.

riperiperi 4 ani în urmă
părinte
comite
778011c12a
2 a modificat fișierele cu 0 adăugiri și 19 ștergeri
  1. 0 16
      Ryujinx.Common/System/ForceDedicatedGpu.cs
  2. 0 3
      Ryujinx/Program.cs

+ 0 - 16
Ryujinx.Common/System/ForceDedicatedGpu.cs

@@ -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 _);
-            }
-        }
-    }
-}

+ 0 - 3
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);