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
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; using System.Timers;
namespace Ryujinx.HLE namespace Ryujinx.HLE
@ -87,6 +88,7 @@ namespace Ryujinx.HLE
public void RecordGameFrameTime() public void RecordGameFrameTime()
{ {
RecordFrameTime(FrameTypeGame); RecordFrameTime(FrameTypeGame);
Profile.FlagTime(TimingFlagType.FrameSwap);
} }
private void RecordFrameTime(int frameType) private void RecordFrameTime(int frameType)

View file

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

View file

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