Repository navigation
worker: add experimental persistent DXC - #134
Merged
Merged
Conversation
smith-3
marked this pull request as ready for review
November 25, 2026 10:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a Linux DXC helper for optimized
cs_6_0requests behindTUXBOX_PERSISTENT_DXC. The worker keeps one helper per activecompiler slot. It retries a lost helper once and falls back to the CLI
if the helper or DXV validation fails. The CLI remains the default.
The opt-in backend has its own cache identity. It retains validated
DXIL reuse when a translator update emits the same HLSL.
Revalidation on
e8898ce(main5678a2f)All five contributor checks passed locally. The merge keeps DXV validation on both paths and preserves main's CLI handling for large pixel shaders.
Four parallel jobs, the same 96 synthetic compute shaders, eight alternating pairs. Times are medians across runs, measured from request publication through the worker response. Batch time includes request cleanup.
All 96 DXIL hashes matched the CLI in every cold and warm run, with zero timeouts. In a separate traced run, one helper was killed after writing 12 bytes. The worker started a replacement, validated all 96 outputs with DXV and returned the same hashes without a CLI compilation. Traced runs are excluded from the timings.
Earlier checks
tests for retry, partial output cleanup, CLI fallback, and cache identity.
a Ryzen 7 9700X with Microsoft DXC 1.9.2609. Median cold batch time
fell from 430 ms to 340 ms. Median p95 fell from 413 ms to 324 ms.
All returned DXIL matched the CLI by SHA-256.
fell from 282 ms to 229 ms across five alternating pairs.
requests still matched the CLI. A distinct translator fingerprint
with identical HLSL reused all 96 DXIL outputs without calling DXC.
The synthetic runs showed overlapping warm timings and about 36 MiB
more sampled peak aggregate RSS in the 96-shader cold runs. The
experimental section in docs/PROJECTSCARLETT.md has setup and
reproduction instructions.
AI-assisted contribution.