diff --git a/src/Ryujinx.Common/TitleIDs.cs b/src/Ryujinx.Common/TitleIDs.cs index e0cb12026..301dcdbf6 100644 --- a/src/Ryujinx.Common/TitleIDs.cs +++ b/src/Ryujinx.Common/TitleIDs.cs @@ -8,7 +8,7 @@ namespace Ryujinx.Common { public static class TitleIDs { - public static ReactiveObject> CurrentApplication { get; set; } = new(); + public static ReactiveObject> CurrentApplication { get; } = new(); public static GraphicsBackend SelectGraphicsBackend(string titleId, GraphicsBackend currentBackend) { diff --git a/src/Ryujinx.HLE/PerformanceStatistics.cs b/src/Ryujinx.HLE/PerformanceStatistics.cs index 890bce8bc..e80faa7d2 100644 --- a/src/Ryujinx.HLE/PerformanceStatistics.cs +++ b/src/Ryujinx.HLE/PerformanceStatistics.cs @@ -161,5 +161,20 @@ namespace Ryujinx.HLE { return 1000 / _frameRate[FrameTypeGame]; } + + public string FormatGameFrameRate() + { + double frameRate = GetGameFrameRate(); + double frameTime = GetGameFrameTime(); + + return $"{frameRate:00.00} FPS ({frameTime:00.00}ms)"; + } + + public string FormatFifoPercent() + { + double fifoPercent = GetFifoPercent(); + + return $"FIFO: {fifoPercent:00.00}%"; + } } } diff --git a/src/Ryujinx.HLE/Switch.cs b/src/Ryujinx.HLE/Switch.cs index e15fab03a..86b04061e 100644 --- a/src/Ryujinx.HLE/Switch.cs +++ b/src/Ryujinx.HLE/Switch.cs @@ -34,8 +34,8 @@ namespace Ryujinx.HLE public int CpuCoresCount = 4; //Switch 1 has 4 cores - public VSyncMode VSyncMode { get; set; } = VSyncMode.Switch; - public bool CustomVSyncIntervalEnabled { get; set; } = false; + public VSyncMode VSyncMode { get; set; } + public bool CustomVSyncIntervalEnabled { get; set; } public int CustomVSyncInterval { get; set; } public long TargetVSyncInterval { get; set; } = 60; diff --git a/src/Ryujinx/AppHost.cs b/src/Ryujinx/AppHost.cs index b2cae2348..4df3eab0d 100644 --- a/src/Ryujinx/AppHost.cs +++ b/src/Ryujinx/AppHost.cs @@ -1151,8 +1151,8 @@ namespace Ryujinx.Ava LocaleManager.Instance[LocaleKeys.VolumeShort] + $": {(int)(Device.GetVolume() * 100)}%", dockedMode, ConfigurationState.Instance.Graphics.AspectRatio.Value.ToText(), - $"{Device.Statistics.GetGameFrameRate():00.00} FPS ({Device.Statistics.GetGameFrameTime():00.00} ms)", - $"FIFO: {Device.Statistics.GetFifoPercent():00.00} %", + Device.Statistics.FormatGameFrameRate(), + Device.Statistics.FormatFifoPercent(), _displayCount)); } diff --git a/src/Ryujinx/Assets/locales.json b/src/Ryujinx/Assets/locales.json index 8a101d733..8ceef5f67 100644 --- a/src/Ryujinx/Assets/locales.json +++ b/src/Ryujinx/Assets/locales.json @@ -22998,4 +22998,4 @@ } } ] -} +} \ No newline at end of file