Skip to content

Commit 153b0f8

Browse files
test(audience-sample): scope log-pane suppression to Unity 6 Linux only
Probe PR #767 showed Unity 2021.3 Linux cells regressed by 38s-2:24 with the suppression in place; Unity 6 Linux cells improved by ~7 min. Add UNITY_6000_0_OR_NEWER to the #if so 2021.3 and 2022.3 Linux cells are unaffected.
1 parent f8dc664 commit 153b0f8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

examples/audience/Assets/SampleApp/Tests/Runtime/LinuxLogPaneSuppression.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#nullable enable
22

3-
#if UNITY_STANDALONE_LINUX
3+
// Gated on Unity 6 specifically. Probe PR #767 (revert this fixture)
4+
// showed Unity 2021.3 Linux cells got faster without the suppression
5+
// (Mono -38 s, IL2CPP -2:24): the per-test SceneLoaded handler cost
6+
// exceeds the rendering gain on cells that are already fast. Unity 6
7+
// Linux cells got slower without it (Mono +7:06, IL2CPP +5:55): the
8+
// suppression is a real ~7 min win there. So scope it to Unity 6 only.
9+
#if UNITY_STANDALONE_LINUX && UNITY_6000_0_OR_NEWER
410
using NUnit.Framework;
511
using UnityEngine;
612
using UnityEngine.SceneManagement;

0 commit comments

Comments
 (0)