Keep precompiled shaders and pipelines current #325
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/325"
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 TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T16:53:33Z.
A pipeline that failed to produce a host PSO stays eligible for the next warm-up. Older completion records are ambiguous and get one retry. The quarantine for failed workers still works as before.
Both launchers now ask the executable whether shader pretranslation is needed. It checks the active translation key and the source paths, so an old cache directory cannot skip the first scan after a translator update. A scan with I/O errors or a failed cache write remains eligible to run again.
The regression tests cover refused pipelines, legacy completion records, and mismatches in the shader cache key and source path. PowerShell and Bash syntax checks passed locally.
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T16:53:46Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
0cb31310cb3131ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T16:55:19Z.
Code review location:
crates/victory-gpu/src/shader_cache.rs; line 177When a translator update adds support for previously refused shaders without changing
TRANSLATOR_VERSION, the completion key remains unchanged:build()uses the version by default, notSOURCE. Such updates explicitly leave the version unchanged according tocrates/victory-shader/src/lib.rs. Because a scan can record completion even when some shaders fail translation, both launchers subsequently skip the scan that would populate those newly supported shaders. IncludeSOURCEin the batch completion key independently of the per-shader cache key so a new translator build gets another scan.Useful? React with 👍 / 👎.
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T16:55:19Z.
Code review location:
apps/victory/src/translate.rs; line 418When a configured source is a directory, modifying an existing shader file or adding files within a nested directory does not change the source root's size or modification time. The completion stamp therefore remains valid after those game assets change, and
shaders --if-neededskips scanning the new shader content indefinitely unless another key input changes. Both launchers normally scan directories, so the freshness check needs to account for descendant files rather than only the root directory's metadata.Useful? React with 👍 / 👎.
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T16:55:19Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
0cb3131abfℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:06:49Z.
Code review location:
crates/victory-gpu/src/shader_cache.rs; line 177The current local implementation keys translations by SOURCE by default and includes the translation fingerprint. One remaining edge case is the explicit version-only override: the batch completion key should still track SOURCE independently so newly supported shaders are scanned. Keep that separate from the per-shader compatibility setting.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:06:51Z.
Code review location:
apps/victory/src/translate.rs; line 418The current local stamp implementation walks the source inventory and hashes each regular file's path, size, modification time and filesystem change time. It also has regression cases for nested additions, removals and preserved timestamps. This addresses the root-metadata-only problem in the current implementation; native test validation remains separate.