From df0707847727eb35a93ac22363d715c0480d8f27 Mon Sep 17 00:00:00 2001 From: Andy Adshead Date: Fri, 1 Feb 2019 03:01:21 +0000 Subject: [PATCH] Forgot to reset instant count/time --- Ryujinx.Profiler/InternalProfile.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Ryujinx.Profiler/InternalProfile.cs b/Ryujinx.Profiler/InternalProfile.cs index a0d363ea86..9cb1eed65c 100644 --- a/Ryujinx.Profiler/InternalProfile.cs +++ b/Ryujinx.Profiler/InternalProfile.cs @@ -152,6 +152,13 @@ namespace Ryujinx.Profiler _preserve = PerformanceCounter.ElapsedTicks; ClearTimerQueue(); + // Reset all instant counts + foreach (KeyValuePair timer in Timers) + { + timer.Value.Instant = 0; + timer.Value.InstantCount = 0; + } + return Timers; }