runtime: default to native shaders and Opus decoding #3449
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-29T11:09:12Z.
Refs #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.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T11:20:03Z.
Review: COMMENTED
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).