aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/Switch.cs
diff options
context:
space:
mode:
authoremmauss <emmausssss@gmail.com>2018-03-06 22:18:49 +0200
committergdkchan <gab.dark.100@gmail.com>2018-03-06 17:18:49 -0300
commit4038e63de14bf12c0cfbe885e2cac44577fe8a6a (patch)
tree535c2ac5cab4376f59c88603e4fc6ff1ee4f2470 /Ryujinx.Core/Switch.cs
parent39ed14a3d6304eeec8ce1fa34819b39c3ae28956 (diff)
Implement basic performance statistics (#53)
* implement basic frame time stats * added game frame time * made performancestatictics class non-static * report average framerate instead of current framerate
Diffstat (limited to 'Ryujinx.Core/Switch.cs')
-rw-r--r--Ryujinx.Core/Switch.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Ryujinx.Core/Switch.cs b/Ryujinx.Core/Switch.cs
index 3f7b1e2b..1acd87f0 100644
--- a/Ryujinx.Core/Switch.cs
+++ b/Ryujinx.Core/Switch.cs
@@ -17,8 +17,9 @@ namespace Ryujinx.Core
internal Horizon Os { get; private set; }
internal VirtualFs VFs { get; private set; }
- public Hid Hid { get; private set; }
- public SetSys Settings { get; private set; }
+ public Hid Hid { get; private set; }
+ public SetSys Settings { get; private set; }
+ public PerformanceStatistics Statistics { get; private set; }
public event EventHandler Finish;
@@ -32,6 +33,8 @@ namespace Ryujinx.Core
Hid = new Hid(Ram);
+ Statistics = new PerformanceStatistics();
+
Os = new Horizon(this);
Os.HidSharedMem.MemoryMapped += Hid.ShMemMap;