Files
betterxen/docs/research/component-reuse-matrix.md
T
atharvranjan d0395a61da Add supervised timeout and cleanup to bx-cli run (#408)
- --timeout, and cleanup on timeout, SIGINT, SIGTERM or SIGHUP: stop the
  launcher process group, then wineserver for the selected bottle or prefix.
  wineserver -k exit 1 (nothing running) is accepted only if -w succeeds.
- Pass shim overrides with bin/wine --dll and --backend with --env in bottle
  mode, because bin/wine discards WINEDLLOVERRIDES and applies bottle
  settings over the environment. First found by jelly013.
- Print the trace summary after a run with --log.
- Record the libc dependency and a one-host D3D12 swapchain observation.

Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
2026-11-26 11:01:28 -06:00

4.0 KiB

Component reuse matrix

Companion to the upstream registry; same evidence limits (class D, nothing run, not legal advice), except the rows marked #417, which were built and run as recorded in the registry's M1-D2 section. "External" means installed or supplied by the user and invoked, never bundled or copied. GPL-3.0-or-later is BetterXen's license.

Need Candidate Decision Reason and condition
Windows runtime APIs CrossOver (Wine-based) Adopt as external dependency (strategic decision, ADR 0005) Proprietary product; do not bundle or redistribute. Capabilities and interfaces unverified (#348, #350).
Windows runtime APIs Upstream Wine Reference; source may be consulted LGPL 2.1. Copying source would need per-file review and a recorded pin. Not needed for the current plan.
x86-64 on ARM64 Rosetta 2 Permitted where Apple supports it; external Apple component; support lifetime unknown (#349). BetterXen's own code stays ARM64.
x86-64 on ARM64 FEX Not applicable now README targets ARM64 Linux. Re-check only if a macOS host path appears.
Direct3D 12 to Metal D3DMetal Evaluate as external, subject to license Not in CodeWeavers' FOSS list; terms and availability to verify (#349, #354). Not redistributable until proven.
D3D12 on D3DMetal outside Wine (fault isolation) utmapp/d3dmetal-native Adopt as external, opt-in test dependency (#417) MIT; built and run at af1ee17 (see the registry's M1-D2 section). The user builds it; BetterXen copies none of it, and only the x86_64 probe links it. It forces an x86_64 process under Rosetta 2 because D3DMetal is x86_64-only. BetterXen's arm64 tools drive that process instead of loading the framework. Never use its D3DMetal binary patcher.
Shader compilation for BetterXen's own test kernels DirectX Shader Compiler (official release) Use as external tool (#417) Run under CrossOver Wine because there is no macOS release. Only compiler output of BetterXen's own HLSL is committed, with version and hashes recorded. The package's Microsoft licence terms cover its closed-source parts, which are never redistributed.
Direct3D 11/10 to Metal DXMT Evaluate as external binary or build LGPL 2.1-or-later; usable as a separate process or library under LGPL terms; linking or copying needs legal review (#354).
Direct3D to Vulkan DXVK Evaluate only together with MoltenVK zlib/libpng is permissive and GPL-compatible. Value on macOS unknown.
Direct3D 12 to Vulkan VKD3D-Proton Evaluate; blocked on a Vulkan 1.3 provider Depends on MoltenVK feature coverage, unknown.
Vulkan on Metal MoltenVK Evaluate Apache-2.0 (compatible with GPLv3). Subset of Vulkan; coverage vs consumers unknown.
Shader compiler / runtime VIctory, VIctory-macOS Rejected for reuse Built for a specific commercial game's Xbox Series build whose provenance is not established as authorized. Ideas only.
Project discovery PortWatch VI Reference only Editorial tracker; not engineering evidence; nothing imported.
x86-64 decode and ARM64 translation, runtime, gfx1030 compiler, Metal backend BetterXen native implementation Preserved, paused Reuse only where hybrid needs it and it shows a demonstrated advantage; not forced into the architecture.
Test and diagnostics methodology BetterXen existing audits, benchmark harness, claims registry Reuse Existing evidence classes, claims audit and benchmark gating apply to hybrid work (Phase 1 onward).
Configuration, diagnostics, benchmarking around CrossOver BetterXen Build (Phase 2, provisional) Only after Phase 1 shows what CrossOver does not already provide (#351).
Process groups and signals for bx-cli run rust-lang/libc 0.2.191 (MIT) Reuse Unmodified crates.io dependency (#408).

Open items: license text for every selected component must be read from the exact release used; DXMT, DXVK and Wine contributor and file-level notices are not reviewed.