runtime: default to native shaders and Opus decoding #3451
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3451
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3449"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@R0Y00 on GitHub · 2026-11-29 11:09 UTC · original
R0Y00:codex/native-shaders-opus-default→main· +101 −23 · 8 files · 1 commits · merged 2026-11-29 11:32 UTCRefs #2935 and #1145.
Default startup configuration
-Translateand--translateswitches still opt into the Python watcher for legacy experiments.Verification
Release at
75db835a, Windows 11 build 26200.9974, MSVC 19.51.36244, Windows SDK/DXC 10.0.26100.0, RTX 4060 Laptop GPU driver 616.56, and WARP 10.0.26100.9818. The Wine launcher check ran with a synthetic Wine stub on Ubuntu 22.04 under WSL.@Leyukaka on GitHub · 2026-11-29 11:20 UTC · original · reviewed
Diff and source reading only, nothing built or run. Read at
75db835aagainst main20bd1553.Configure-time download.
X2W_WITH_OPUSnow defaults to${WIN32}(CMakeLists.txt:588). Whenfind_package(Opus CONFIG QUIET)does not defineOpus::opus,FetchContentdownloadsopus-1.5.2.tar.gzfrom downloads.xiph.org (CMakeLists.txt:590-601). The SHA-256 is the one already insrc/startup_stubs/THIRD_PARTY_NOTICES.md:7-8. A default Windows configure without an installed Opus package therefore needs network access, or-DX2W_WITH_OPUS=OFF. The otherFetchContentin the file (Tracy,CMakeLists.txt:621-637) is behind an option that defaults to OFF. Nothing under.githubor inCMakePresets.jsonmentions Opus, so the Windows CI configure steps (windows.yml:468,487,602,621) take the same path unless the runner provides a package.X2W_NATIVE_SHADERS_ONLYis always overwritten. With-Render, both launchers set it to1, or to0under-Translate/--translate(run.ps1:99-101,run.sh:176-178), whatever the caller exported.X2W_XAPU_TYPED_COMPLETIONSkeeps a preset value (run.ps1:50,run.sh:107). With1, the stand-in skips published manifests for graphics and compute (d3d12_draw.inl:480-483,d3d12_compute_dispatch.inl:130-133). So-Render -NativeShaders <dir>, which on main left the variable unset, now runs without the published-translation fallback;-Translatekeeps the fallback and also starts the watcher.Paths without a test case.
X2W_XAPU_TYPED_COMPLETIONS=0being kept: both suites remove the variable and expect1(startup_run_ps1_check.py:202,290;startup_run_sh_check.py:307).run.ps1:94-98,run.sh:170-174): every-Render/--rendercase creates both DLLs.X2W_NATIVE_SHADERSenvironment override in either launcher, and thedxc.exeonPATHfallback (run.ps1:90-93, absent fromrun.sh): every such case writesx2w-dxc-dir.txtor passes-NativeShaders.startup_run_shreturns 77 on Windows (startup_run_sh_check.py:474-476), so therun.shchanges are only exercised on a Linux host.Docs that still describe the old defaults.
src/startup_stubs/THIRD_PARTY_NOTICES.md:5-6: "With the optional-DX2W_WITH_OPUS=ONconfigure option" and "link an installed libopus".docs/startup-runtime.md:1009-1028:run.ps1 -Render -NativeShaders <dir>is described with "A refused key is left to the published translations"; that command now setsX2W_NATIVE_SHADERS_ONLY=1.docs/startup-runtime.md:1678: the switches table marksX2W_NATIVE_SHADERSas experimental and has no row forX2W_NATIVE_SHADERS_ONLY(mentioned only at:961).docs/startup-runtime.md:3234-3236and:3242: "The experimentalX2W_XAPU_TYPED_COMPLETIONS=1" and "the optional Opus decode".docs/startup-runtime.md:3276anddocs/experiments/startup-opus-completion-count.md:47: the recipes still pass-DX2W_WITH_OPUS=ON -DOpus_DIR=...(still valid, no longer required on Windows).