From 1c4f8b817575c5dbc337bdbbf07a91940c6cc4d2 Mon Sep 17 00:00:00 2001 From: MutantAura Date: Thu, 11 Apr 2024 17:45:37 +0100 Subject: [PATCH] Add logging to the nvapi try-catch. --- src/Ryujinx.Common/GraphicsDriver/DriverUtilities.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.Common/GraphicsDriver/DriverUtilities.cs b/src/Ryujinx.Common/GraphicsDriver/DriverUtilities.cs index 83bc8d555..2d8ee9f99 100644 --- a/src/Ryujinx.Common/GraphicsDriver/DriverUtilities.cs +++ b/src/Ryujinx.Common/GraphicsDriver/DriverUtilities.cs @@ -1,3 +1,4 @@ +using Ryujinx.Common.Logging; using System; namespace Ryujinx.Common.GraphicsDriver @@ -15,7 +16,7 @@ namespace Ryujinx.Common.GraphicsDriver } catch { - // NVAPI is not available, or couldn't change the application profile. + Logger.Warning?.Print(LogClass.Application, "Failed to set threaded optimizations. NVAPI may be unavailable."); } } @@ -27,7 +28,7 @@ namespace Ryujinx.Common.GraphicsDriver } catch { - // NVAPI is not available, or couldn't change the application profile. + Logger.Warning?.Print(LogClass.Application, "Failed to set Vulkan/OpenGL present method. NVAPI may be unavailable."); } } }