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:
parent
f84fb20959
commit
371b9999f2
4 changed files with 39 additions and 7 deletions
|
@ -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}"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue