From 2748697a8cc752010b1a45340598a430be6d5ee2 Mon Sep 17 00:00:00 2001 From: ImmutableJeffrey Date: Wed, 29 Apr 2026 08:39:05 +1000 Subject: [PATCH] refactor(audience-sample-app): drop log row count cap Removes the LogCapacity const (200) and the eviction check inside AppendLog. Log rows now accumulate until the user clicks Clear or the session ends. Sample-app demo sessions are short and the cap was preventive rather than corrective. --- .../audience/Assets/SampleApp/Scripts/AudienceSample.UI.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/audience/Assets/SampleApp/Scripts/AudienceSample.UI.cs b/examples/audience/Assets/SampleApp/Scripts/AudienceSample.UI.cs index 0c4ed6ef..1c089afe 100644 --- a/examples/audience/Assets/SampleApp/Scripts/AudienceSample.UI.cs +++ b/examples/audience/Assets/SampleApp/Scripts/AudienceSample.UI.cs @@ -28,7 +28,6 @@ private static readonly (string TabId, string PanelId)[] Tabs = private static readonly string[] StateClasses = { "state-ok", "state-warn", "state-err", "dim" }; - private const int LogCapacity = 200; private const int CollapseThreshold = 240; private const int StatusPollIntervalMs = 500; private const float NarrowBreakpointPx = 1024f; @@ -698,9 +697,6 @@ private void AppendLog(string label, string? body, LogLevel level, LogSource sou return; } - if (_logView.contentContainer.childCount >= LogCapacity) - _logView.contentContainer.RemoveAt(0); - // Snapshot "was at bottom?" before adding — stateless per-row check. var s = _logView.verticalScroller; bool wasAtBottom = s.highValue <= 0 || (s.highValue - s.value) < 4f;