1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-10-01 12:30:00 +02:00

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

This commit is contained in:
riperiperi 2021-05-19 19:26:23 +01:00
parent 3f126487ab
commit 778011c12a
2 changed files with 0 additions and 19 deletions

View file

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

View file

@ -137,9 +137,6 @@ namespace Ryujinx
// Logging system information. // Logging system information.
PrintSystemInfo(); PrintSystemInfo();
// Force dedicated GPU if we can.
ForceDedicatedGpu.Nvidia();
// Enable OGL multithreading on the driver, when available. // Enable OGL multithreading on the driver, when available.
DriverUtilities.ToggleOGLThreading(true); DriverUtilities.ToggleOGLThreading(true);