Explorar o código

Fix gpu vendor name parsing (#1030)

* Update GLRenderer.cs

* print the vendor name fully
Ac_K %!s(int64=6) %!d(string=hai) anos
pai
achega
a40d8d4a17
Modificáronse 1 ficheiros con 1 adicións e 7 borrados
  1. 1 7
      Ryujinx/Ui/GLRenderer.cs

+ 1 - 7
Ryujinx/Ui/GLRenderer.cs

@@ -335,17 +335,11 @@ namespace Ryujinx.Ui
 
 
                     _device.Statistics.RecordSystemFrameTime();
                     _device.Statistics.RecordSystemFrameTime();
 
 
-                    string gpuVendor = "Unknown";
-
-                    if (_renderer.GpuVendor.ToLower().Contains("nvidia")) gpuVendor = "NVIDIA";
-                    if (_renderer.GpuVendor.ToLower().Contains("amd") || _renderer.GpuVendor.ToLower().Contains("ati")) gpuVendor = "AMD";
-                    if (_renderer.GpuVendor.ToLower().Contains("intel")) gpuVendor = "Intel";
-
                     StatusUpdatedEvent?.Invoke(this, new StatusUpdatedEventArgs(
                     StatusUpdatedEvent?.Invoke(this, new StatusUpdatedEventArgs(
                         _device.EnableDeviceVsync, 
                         _device.EnableDeviceVsync, 
                         $"Host: {_device.Statistics.GetSystemFrameRate():00.00} FPS", 
                         $"Host: {_device.Statistics.GetSystemFrameRate():00.00} FPS", 
                         $"Game: {_device.Statistics.GetGameFrameRate():00.00} FPS",
                         $"Game: {_device.Statistics.GetGameFrameRate():00.00} FPS",
-                        $"GPU: {gpuVendor}"));
+                        $"GPU: {_renderer.GpuVendor}"));
 
 
                     _device.System.SignalVsync();
                     _device.System.SignalVsync();