Better plage for frame swap flag, also kept enough flags to cover larger time spans
This commit is contained in:
parent
b3d98f3d81
commit
6f87bd0bc1
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -283,8 +283,6 @@ namespace Ryujinx
|
|||
_device.System.SignalVsync();
|
||||
|
||||
_device.VsyncEvent.Set();
|
||||
|
||||
Profile.FlagTime(TimingFlagType.FrameSwap);
|
||||
}
|
||||
|
||||
protected override void OnUnload(EventArgs e)
|
||||
|
|
Loading…
Add table
Reference in a new issue