Commit f2f7037
committed
test(audience-sample): hide log pane on Linux PlayMode to skip llvmpipe rasterisation
PR 765 captured a player profile that showed the Unity 6 Linux cells
spending roughly 4.5 seconds per frame in Gfx.PresentFrame self time on
the render thread. Camera.Render was 2 ms and UI.RenderOverlays 1.45 ms
per frame; the 4.5 sec is llvmpipe walking the deferred command buffer
and rasterising approximately 2920 batches and 7520 triangles per
frame, almost all of which are UI Toolkit log rows generated by the
SampleApp's accumulating log pane.
LinuxLogPaneSuppression registers a SceneManager.sceneLoaded handler
that sets the log ScrollView to display:none after each scene load.
display:none skips layout and render but keeps elements in the visual
tree, so HasLogEntry (which walks contentContainer.Children() and
inspects userData by reference) still observes log rows correctly.
Engages only on StandaloneLinux64 builds via #if UNITY_STANDALONE_LINUX.
Mac and Windows PlayMode runs are unaffected.1 parent 5c1040c commit f2f7037
2 files changed
Lines changed: 79 additions & 0 deletions
File tree
- examples/audience/Assets/SampleApp/Tests/Runtime
Lines changed: 68 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments