Commit 799ae23
committed
ci(audience): force StandaloneLinux64 player to OpenGLCore only at build time
Adds GraphicsApisLinuxOverride, an editor build hook gated on the
AUDIENCE_LINUX_GLCORE_ONLY env var. When the env is set and the build
target is StandaloneLinux64, it pins PlayerSettings graphics APIs to
OpenGLCore only, dropping Vulkan from the active list.
The Linux container has no GPU and the player runs on Mesa llvmpipe via
-force-glcore. Vulkan was active in the build only because Unity's
default Standalone API list includes it; the shader compiler emitted
both glcore and vulkan variants for every shader. On the Unity 6 cell
this was 213 of 413 compiles wasted on a code path the player never
hit.
Wires the env var through the playmode-linux job's docker run so the
override fires on Linux PlayMode CI builds. Local builds and other
targets see no change because the env var is unset and the hook short
circuits on non-Linux build targets.1 parent aaf44cb commit 799ae23
3 files changed
Lines changed: 69 additions & 0 deletions
File tree
- .github/workflows
- examples/audience/Assets/Editor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
470 | 471 | | |
471 | 472 | | |
472 | 473 | | |
| |||
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
| 486 | + | |
485 | 487 | | |
486 | 488 | | |
487 | 489 | | |
| |||
Lines changed: 56 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 | + | |
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