From c5816cb2393477f741f9c7433fc4eea7c0556f0d Mon Sep 17 00:00:00 2001 From: bd_ Date: Sun, 1 Sep 2024 14:43:40 -0700 Subject: [PATCH] fix: unclosed profiler scope in TargetSet --- CHANGELOG.md | 2 +- Editor/PreviewSystem/Rendering/TargetSet.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33889ac..5da21da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [#361] Added `IRenderFilterNode.OnFrameGroup` ### Fixed - +- [#362] Fixed unclosed profiler scope in TargetSet - [#355] Excessive invalidation when scene view visibility states change ### Changed diff --git a/Editor/PreviewSystem/Rendering/TargetSet.cs b/Editor/PreviewSystem/Rendering/TargetSet.cs index 74d3281..59d94dc 100644 --- a/Editor/PreviewSystem/Rendering/TargetSet.cs +++ b/Editor/PreviewSystem/Rendering/TargetSet.cs @@ -38,6 +38,7 @@ public TargetSet(ImmutableList filters) Profiler.BeginSample("TargetSet.GetTargetGroups[" + filter + "]"); var groups = filter.GetTargetGroups(_targetSetContext); + Profiler.EndSample(); if (groups.IsEmpty) continue; builder.Add(new Stage