Forcibly enable threaded optimization on boot.

This commit is contained in:
riperiperi 2021-04-07 13:19:02 +01:00
parent b1c3e01691
commit 1239c82d2f
8 changed files with 327 additions and 3 deletions

View file

@ -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();