aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2021-05-19 19:26:23 +0100
committerriperiperi <rhy3756547@hotmail.com>2021-05-19 19:26:23 +0100
commit778011c12ae7905173e02665f397a96686863b89 (patch)
tree21429528510b929f0018831eb3567750f954f4df
parent3f126487abc94cacc7ffab59b2a87b270d3cfe15 (diff)
Remove ForceDedicatedGpu, as the driver utilities will now do that.
-rw-r--r--Ryujinx.Common/System/ForceDedicatedGpu.cs16
-rw-r--r--Ryujinx/Program.cs3
2 files changed, 0 insertions, 19 deletions
diff --git a/Ryujinx.Common/System/ForceDedicatedGpu.cs b/Ryujinx.Common/System/ForceDedicatedGpu.cs
deleted file mode 100644
index 60272f1a..00000000
--- 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 db31a2e5..b1fe41a7 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);