Skip to content

Commit 2748697

Browse files
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.
1 parent 9e825b9 commit 2748697

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

examples/audience/Assets/SampleApp/Scripts/AudienceSample.UI.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ private static readonly (string TabId, string PanelId)[] Tabs =
2828

2929
private static readonly string[] StateClasses = { "state-ok", "state-warn", "state-err", "dim" };
3030

31-
private const int LogCapacity = 200;
3231
private const int CollapseThreshold = 240;
3332
private const int StatusPollIntervalMs = 500;
3433
private const float NarrowBreakpointPx = 1024f;
@@ -698,9 +697,6 @@ private void AppendLog(string label, string? body, LogLevel level, LogSource sou
698697
return;
699698
}
700699

701-
if (_logView.contentContainer.childCount >= LogCapacity)
702-
_logView.contentContainer.RemoveAt(0);
703-
704700
// Snapshot "was at bottom?" before adding — stateless per-row check.
705701
var s = _logView.verticalScroller;
706702
bool wasAtBottom = s.highValue <= 0 || (s.highValue - s.value) < 4f;

0 commit comments

Comments
 (0)