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

Merged
Valdi320 merged 7 commits from upstream-pr/239 into main 2026-11-27 15:28:30 +00:00
Valdi320 commented 2026-11-26 15:20:53 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T15:20:53Z.


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.

<!-- greyfinch-sync:brcly/TuxBox:issue:5512682971 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/239). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-26T15:20:53Z. --- **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 commented 2026-11-26 22:22:39 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T22:22:39Z.


Follow-up at 2fb96ad7f1: 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.

<!-- greyfinch-sync:brcly/TuxBox:comment:7204621533 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/239#issuecomment-7204621533). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-26T22:22:39Z. --- Follow-up at 2fb96ad7f1c7fd16086ed35068977dbb506c1e48: 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
brcly/TuxBox!239
No description provided.