gdk's requested changes
This commit is contained in:
parent
2266126e20
commit
406b1e2cfe
4 changed files with 17 additions and 12 deletions
|
@ -325,12 +325,10 @@ namespace Ryujinx.Ui
|
|||
|
||||
_device.Statistics.RecordSystemFrameTime();
|
||||
|
||||
StatusUpdatedEvent?.Invoke(this, new StatusUpdatedEventArgs
|
||||
{
|
||||
VSyncEnabled = _device.EnableDeviceVsync,
|
||||
HostStatus = $"Host: {_device.Statistics.GetSystemFrameRate():00.00}FPS - {_device.Statistics.GetSystemFrameTime():00.00}ms",
|
||||
GameStatus = $"Game: {_device.Statistics.GetGameFrameRate():00.00}FPS - { _device.Statistics.GetGameFrameTime():00.00}ms"
|
||||
});
|
||||
StatusUpdatedEvent?.Invoke(this, new StatusUpdatedEventArgs(
|
||||
_device.EnableDeviceVsync,
|
||||
$"Host: {_device.Statistics.GetSystemFrameRate():00.00}FPS - {_device.Statistics.GetSystemFrameTime():00.00}ms",
|
||||
$"Game: {_device.Statistics.GetGameFrameRate():00.00}FPS - { _device.Statistics.GetGameFrameTime():00.00}ms"));
|
||||
|
||||
_device.System.SignalVsync();
|
||||
|
||||
|
|
|
@ -603,9 +603,8 @@ namespace Ryujinx.Ui
|
|||
{
|
||||
Application.Invoke(delegate
|
||||
{
|
||||
_vSyncStatus.Text = "VSync";
|
||||
_hostStatus.Text = args.HostStatus;
|
||||
_gameStatus.Text = args.GameStatus;
|
||||
_hostStatus.Text = args.HostStatus;
|
||||
_gameStatus.Text = args.GameStatus;
|
||||
|
||||
if (args.VSyncEnabled)
|
||||
{
|
||||
|
|
|
@ -477,6 +477,7 @@
|
|||
<property name="halign">start</property>
|
||||
<property name="margin_left">10</property>
|
||||
<property name="margin_right">5</property>
|
||||
<property name="label" translatable="yes">VSync</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
|
|
|
@ -4,8 +4,15 @@ namespace Ryujinx.Ui
|
|||
{
|
||||
public class StatusUpdatedEventArgs : EventArgs
|
||||
{
|
||||
public bool VSyncEnabled { get; set; }
|
||||
public string HostStatus { get; set; }
|
||||
public string GameStatus { get; set; }
|
||||
public bool VSyncEnabled;
|
||||
public string HostStatus;
|
||||
public string GameStatus;
|
||||
|
||||
public StatusUpdatedEventArgs(bool vSyncEnabled, string hostStatus, string gameStatus)
|
||||
{
|
||||
VSyncEnabled = vSyncEnabled;
|
||||
HostStatus = hostStatus;
|
||||
GameStatus = gameStatus;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue