aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Renderer.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2020-01-10 01:35:50 +0100
committerThog <thog@protonmail.com>2020-01-10 02:17:34 +0100
commit87b52ad7d88b17dfac3d54138932b338abf8a78b (patch)
tree760ea16eddf782ba69815360d82cc33cdc5468f3 /Ryujinx.Graphics.OpenGL/Renderer.cs
parentab29521faaed0e1585f287abfebbeabe885b56a7 (diff)
Add GPU Information to Logging
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Renderer.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Renderer.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Renderer.cs b/Ryujinx.Graphics.OpenGL/Renderer.cs
index 86ce9c7c..f30587c9 100644
--- a/Ryujinx.Graphics.OpenGL/Renderer.cs
+++ b/Ryujinx.Graphics.OpenGL/Renderer.cs
@@ -1,4 +1,5 @@
using OpenTK.Graphics.OpenGL;
+using Ryujinx.Common.Logging;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.Shader;
@@ -75,9 +76,20 @@ namespace Ryujinx.Graphics.OpenGL
public void InitializeCounters()
{
+ GetGpuInformation();
+
_counters.Initialize();
}
+ private void GetGpuInformation()
+ {
+ string gpuVendor = GL.GetString(StringName.Vendor);
+ string gpuRenderer = GL.GetString(StringName.Renderer);
+ string gpuVersion = GL.GetString(StringName.Version);
+
+ Logger.PrintInfo(LogClass.Gpu, $"{gpuVendor} {gpuRenderer} ({gpuVersion})");
+ }
+
public void ResetCounter(CounterType type)
{
_counters.ResetCounter(type);