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; } diff --git a/Ryujinx.Profiler/UI/ProfileWindow.cs b/Ryujinx.Profiler/UI/ProfileWindow.cs index 1302158c02..e7a1c4e03c 100644 --- a/Ryujinx.Profiler/UI/ProfileWindow.cs +++ b/Ryujinx.Profiler/UI/ProfileWindow.cs @@ -401,6 +401,9 @@ namespace Ryujinx.Profiler.UI verticalIndex = 0; foreach (var entry in _sortedProfileData) { + if (entry.Key.Category == null) + continue; + float y = GetLineY(yOffset, LineHeight, LinePadding, true, verticalIndex++); width = _fontService.DrawText(entry.Key.Category, xOffset, y, LineHeight); @@ -426,6 +429,9 @@ namespace Ryujinx.Profiler.UI GL.Enable(EnableCap.ScissorTest); foreach (var entry in _sortedProfileData) { + if (entry.Key.SessionGroup == null) + continue; + float y = GetLineY(yOffset, LineHeight, LinePadding, true, verticalIndex++); width = _fontService.DrawText(entry.Key.SessionGroup, xOffset, y, LineHeight); @@ -450,6 +456,9 @@ namespace Ryujinx.Profiler.UI GL.Enable(EnableCap.ScissorTest); foreach (var entry in _sortedProfileData) { + if (entry.Key.SessionItem == null) + continue; + float y = GetLineY(yOffset, LineHeight, LinePadding, true, verticalIndex++); width = _fontService.DrawText(entry.Key.SessionItem, xOffset, y, LineHeight);