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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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}"));