diff options
| author | Ac_K <Acoustik666@gmail.com> | 2020-03-25 00:12:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-25 00:12:01 +0100 |
| commit | a40d8d4a174ae9ec7c2900b7064625a366ae14ad (patch) | |
| tree | ea64d62245dae82c583126b7c2e1aa3798097636 | |
| parent | daecb1193de369390ee0efd0a8dc4c21de2ed9ba (diff) | |
Fix gpu vendor name parsing (#1030)
* Update GLRenderer.cs
* print the vendor name fully
| -rw-r--r-- | Ryujinx/Ui/GLRenderer.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Ryujinx/Ui/GLRenderer.cs b/Ryujinx/Ui/GLRenderer.cs index 160608eb..fa41ca4c 100644 --- a/Ryujinx/Ui/GLRenderer.cs +++ b/Ryujinx/Ui/GLRenderer.cs @@ -335,17 +335,11 @@ namespace Ryujinx.Ui _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( _device.EnableDeviceVsync, $"Host: {_device.Statistics.GetSystemFrameRate():00.00} FPS", $"Game: {_device.Statistics.GetGameFrameRate():00.00} FPS", - $"GPU: {gpuVendor}")); + $"GPU: {_renderer.GpuVendor}")); _device.System.SignalVsync(); |
