diff options
author | riperiperi <rhy3756547@hotmail.com> | 2021-04-07 13:19:02 +0100 |
---|---|---|
committer | riperiperi <rhy3756547@hotmail.com> | 2021-04-18 17:34:00 +0100 |
commit | 1239c82d2f2fa59a42561a4a278a9cdca5eca462 (patch) | |
tree | 2885fc1498de539d9c27878ed9788bb6ecf081c5 /Ryujinx/Program.cs | |
parent | b1c3e01691507709bc4a6a23f02396f3b97803e5 (diff) |
Forcibly enable threaded optimization on boot.
Diffstat (limited to 'Ryujinx/Program.cs')
-rw-r--r-- | Ryujinx/Program.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Ryujinx/Program.cs b/Ryujinx/Program.cs index 4df82da6..db31a2e5 100644 --- a/Ryujinx/Program.cs +++ b/Ryujinx/Program.cs @@ -1,6 +1,7 @@ using ARMeilleure.Translation.PTC; using Gtk; using Ryujinx.Common.Configuration; +using Ryujinx.Common.GraphicsDriver; using Ryujinx.Common.Logging; using Ryujinx.Common.System; using Ryujinx.Common.SystemInfo; @@ -136,6 +137,12 @@ 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); + // Initialize Gtk. Application.Init(); @@ -147,9 +154,6 @@ namespace Ryujinx UserErrorDialog.CreateUserErrorDialog(UserError.NoKeys); } - // Force dedicated GPU if we can. - ForceDedicatedGpu.Nvidia(); - // Show the main window UI. MainWindow mainWindow = new MainWindow(); mainWindow.Show(); |