mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-01 03:32:02 +00:00
Add GPU Information to Logging
This commit is contained in:
parent
ab29521faa
commit
87b52ad7d8
1 changed files with 12 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
using OpenTK.Graphics.OpenGL;
|
using OpenTK.Graphics.OpenGL;
|
||||||
|
using Ryujinx.Common.Logging;
|
||||||
using Ryujinx.Graphics.GAL;
|
using Ryujinx.Graphics.GAL;
|
||||||
using Ryujinx.Graphics.Shader;
|
using Ryujinx.Graphics.Shader;
|
||||||
|
|
||||||
|
@ -75,9 +76,20 @@ namespace Ryujinx.Graphics.OpenGL
|
||||||
|
|
||||||
public void InitializeCounters()
|
public void InitializeCounters()
|
||||||
{
|
{
|
||||||
|
GetGpuInformation();
|
||||||
|
|
||||||
_counters.Initialize();
|
_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)
|
public void ResetCounter(CounterType type)
|
||||||
{
|
{
|
||||||
_counters.ResetCounter(type);
|
_counters.ResetCounter(type);
|
||||||
|
|
Loading…
Reference in a new issue