Better plage for frame swap flag, also kept enough flags to cover larger time spans

This commit is contained in:
Andy Adshead 2019-01-30 06:32:30 +00:00
parent b3d98f3d81
commit 6f87bd0bc1
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,5 @@
using System.Diagnostics;
using Ryujinx.Profiler;
using System.Diagnostics;
using System.Timers;
namespace Ryujinx.HLE
@ -87,6 +88,7 @@ namespace Ryujinx.HLE
public void RecordGameFrameTime()
{
RecordFrameTime(FrameTypeGame);
Profile.FlagTime(TimingFlagType.FrameSwap);
}
private void RecordFrameTime(int frameType)

View file

@ -28,7 +28,7 @@ namespace Ryujinx.Profiler
private int _timingFlagCount;
private int _timingFlagIndex;
private const int MaxFlags = 50;
private const int MaxFlags = 500;
private Action<TimingFlag> _timingFlagCallback;

View file

@ -283,8 +283,6 @@ namespace Ryujinx
_device.System.SignalVsync();
_device.VsyncEvent.Set();
Profile.FlagTime(TimingFlagType.FrameSwap);
}
protected override void OnUnload(EventArgs e)