From b05eab21a2707371a2608c71faa60171a1e93789 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Tue, 24 Dec 2024 01:40:29 -0600 Subject: [PATCH] misc: always log backend when creating embeddedwindow --- src/Ryujinx/UI/Renderer/RendererHost.axaml.cs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/Ryujinx/UI/Renderer/RendererHost.axaml.cs b/src/Ryujinx/UI/Renderer/RendererHost.axaml.cs index 7bc7e9160..c66b266c0 100644 --- a/src/Ryujinx/UI/Renderer/RendererHost.axaml.cs +++ b/src/Ryujinx/UI/Renderer/RendererHost.axaml.cs @@ -62,11 +62,6 @@ namespace Ryujinx.Ava.UI.Renderer KnownGreatMetalTitles.ContainsIgnoreCase(titleId) ? new EmbeddedWindowMetal() : new EmbeddedWindowVulkan(); - - string backendText = EmbeddedWindow is EmbeddedWindowVulkan ? "Vulkan" : "Metal"; - - Logger.Info?.PrintMsg(LogClass.Gpu, $"Auto: Using {backendText}"); - break; case GraphicsBackend.OpenGl: EmbeddedWindow = new EmbeddedWindowOpenGL(); @@ -78,6 +73,16 @@ namespace Ryujinx.Ava.UI.Renderer EmbeddedWindow = new EmbeddedWindowVulkan(); break; } + + string backendText = EmbeddedWindow switch + { + EmbeddedWindowVulkan => "Vulkan", + EmbeddedWindowOpenGL => "OpenGL", + EmbeddedWindowMetal => "Metal", + _ => throw new NotImplementedException() + }; + + Logger.Info?.PrintMsg(LogClass.Gpu, $"Backend ({ConfigurationState.Instance.Graphics.GraphicsBackend.Value}): {backendText}"); Initialize(); }