print the vendor name fully

This commit is contained in:
Ac_K 2020-03-25 00:01:14 +01:00 committed by GitHub
parent 807081541e
commit 04f86f0bb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();