Skip to content

Commit

Permalink
misc: always log backend when creating embeddedwindow
Browse files Browse the repository at this point in the history
  • Loading branch information
GreemDev committed Dec 24, 2024
1 parent ff667a5 commit b05eab2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/Ryujinx/UI/Renderer/RendererHost.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ public RendererHost(string titleId)
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();
Expand All @@ -78,6 +73,16 @@ public RendererHost(string titleId)
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();
}
Expand Down

0 comments on commit b05eab2

Please sign in to comment.