1
1
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2025-08-31 11:26:27 -05:00

Add Docked/Handheld text on status bar (#1205)

* Add Dock/Handheld on status bar

* Simplified the code & move next to V-Sync

* Nit.
This commit is contained in:
HorrorTroll
2020-05-05 05:10:01 +07:00
committed by GitHub
parent f84fb20959
commit 371b9999f2
4 changed files with 39 additions and 7 deletions

View File

@@ -326,6 +326,8 @@ namespace Ryujinx.Ui
_device.ProcessFrame();
}
string dockedMode = ConfigurationState.Instance.System.EnableDockedMode ? "Docked" : "Handheld";
if (_ticks >= _ticksPerFrame)
{
_device.PresentFrame(SwapBuffers);
@@ -333,8 +335,9 @@ namespace Ryujinx.Ui
_device.Statistics.RecordSystemFrameTime();
StatusUpdatedEvent?.Invoke(this, new StatusUpdatedEventArgs(
_device.EnableDeviceVsync,
$"Host: {_device.Statistics.GetSystemFrameRate():00.00} FPS",
_device.EnableDeviceVsync,
dockedMode,
$"Host: {_device.Statistics.GetSystemFrameRate():00.00} FPS",
$"Game: {_device.Statistics.GetGameFrameRate():00.00} FPS",
$"GPU: {_renderer.GpuVendor}"));