mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-29 00:06:24 +02:00
Migrate to .NET 9 (#198)
This commit is contained in:
parent
8db5a7e98b
commit
ff6628149d
136 changed files with 278 additions and 270 deletions
|
@ -1,4 +1,5 @@
|
|||
using Ryujinx.Common;
|
||||
using System.Threading;
|
||||
using System.Timers;
|
||||
|
||||
namespace Ryujinx.HLE
|
||||
|
@ -20,12 +21,12 @@ namespace Ryujinx.HLE
|
|||
private readonly long[] _framesRendered;
|
||||
private readonly double[] _percentTime;
|
||||
|
||||
private readonly object[] _frameLock;
|
||||
private readonly object[] _percentLock;
|
||||
private readonly Lock[] _frameLock = [new()];
|
||||
private readonly Lock[] _percentLock = [new()];
|
||||
|
||||
private readonly double _ticksToSeconds;
|
||||
|
||||
private readonly Timer _resetTimer;
|
||||
private readonly System.Timers.Timer _resetTimer;
|
||||
|
||||
public PerformanceStatistics()
|
||||
{
|
||||
|
@ -41,10 +42,7 @@ namespace Ryujinx.HLE
|
|||
_framesRendered = new long[1];
|
||||
_percentTime = new double[1];
|
||||
|
||||
_frameLock = new[] { new object() };
|
||||
_percentLock = new[] { new object() };
|
||||
|
||||
_resetTimer = new Timer(750);
|
||||
_resetTimer = new(750);
|
||||
|
||||
_resetTimer.Elapsed += ResetTimerElapsed;
|
||||
_resetTimer.AutoReset = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue