Skip to content

launcher: deduplicate shader compilation and verify one bounded cache snapshot - #239

Draft
Valdi320 wants to merge 7 commits into
brcly:mainfrom
Valdi320:work/content-cache-single-flight-20261126
Draft

Valdi320 wants to merge 7 commits into
brcly:mainfrom
Valdi320:work/content-cache-single-flight-20261126

Conversation

@Valdi320

@Valdi320 Valdi320 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Review goal: Avoid duplicate DXC/DXV work and repeated large file reads without changing cache keys.

Scope: #239 + #247. Source lock before content lock; recheck after acquiring the content lock. Stream HLSL key, verify and stage one bounded regular-file DXIL snapshot, reject wrong-stage entries before counting reuse, save the validated bytes.

Evidence: Current combined head b460d1c on main 6ce0aac: all six no-GPU groups, Python suite 414 collected. Includes concurrent same-content and independent-content controls, wrong-stage, oversized and symlink/FIFO rejection. Previous separate-head GPU checks and synthetic measurements remain in #239/#247; no combined-head GPU or title performance claim.

Review order: fourth. Independent of diagnostics; host tooling only. Full GPU check and real cold/warm timing pending. No new cache identity or default scheduling policy.

@Valdi320

Copy link
Copy Markdown
Contributor Author

Follow-up at 2fb96ad: launcher: hash generated shader content incrementally. 382 tests, 27 skipped; real file hashing of 32 MiB synthetic input yields identical digest, process peak RSS 60,596 KiB with whole-file read versus 29,004 KiB with streaming. Not a game performance measurement. Host tooling only; no new GPU or title performance claim.

@Valdi320 Valdi320 changed the title launcher: deduplicate concurrent DXIL compilation by HLSL content launcher: deduplicate shader compilation and verify one bounded cache snapshot Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant