mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-08-31 19:26:28 -05:00
Add GPU name in status bar (#984)
* Add GPU name in status bar * Fixed like Ac_K suggest * Nit. * Minor fix * Minor change. * Nit. * Fixed for ATI vendor * Minor fix, again...
This commit is contained in:
@@ -335,10 +335,17 @@ 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"));
|
||||
$"Game: {_device.Statistics.GetGameFrameRate():00.00} FPS",
|
||||
$"GPU: {gpuVendor}"));
|
||||
|
||||
_device.System.SignalVsync();
|
||||
|
||||
|
Reference in New Issue
Block a user