Index configured shader skip hashes #189

Closed
github-bot wants to merge 507 commits from github-bot/gh-189 into main AGit
Owner

@⁠Pototoooo on GitHub · 2026-11-27 07:30 UTC · original
Pototoooo:perf/index-shader-skip-hashes → main · +38712 −3663 · 177 files · 507 commits · closed without merging

Summary

Index the normalized VICTORY_SKIP_PIPELINES hashes once in a set. Both the live draw/dispatch path and the warm-pipeline prefilter now use set membership. Hash normalization, validation, and the first matching shader in the pipeline are preserved.

This affects the opt-in VICTORY_SKIP_PIPELINES workaround. An unset or empty list still returns before looking up shader hashes. The benchmark below measures the CPU lookup in isolation for a large list. A game launch check is documented below. A stable in-game performance comparison and visual validation remain pending.

Validation

  • victory-gpu pipeline unit tests with all features: 34 passed, 1 ignored. victory warm unit tests with diagnostics: 9 passed. Coverage includes normalized duplicate hashes, warm recipe matching, and skipping before queueing.

  • Rust 1.98.1 optimized lookup-only benchmark on a Ryzen 5 9600X. With 1,034 distinct 16-character hashes and 250,000 lookups (15,625 hits), the median of seven runs was 388.595 ms for the previous vector and 5.169 ms for the set. Both returned the same result count. This measures lookup overhead with a large configured list and does not measure game frame rate or shader compile time.

  • Follow-up with the four hashes in docs/findings-rtx4090.md, using the same isolated benchmark: 2.308 ms for the vector and 3.423 ms for the set. Further runs showed the same direction. A short configured list can be slower with the set.

Game launch check

Built the base (791648b) and PR head (f8dde0d) with the same Windows GNU diagnostics profile and ran each on an RTX 5070 using the same copied save and starting Victory cache, Series S, 1920x1080 scene output, frame generation off, and the four hashes above. Both ran through startup and logged skips for all four hashes during rendering. The recorded intervals still had ongoing pipeline compilation and different draw counts. This run cannot establish a frame-rate change or visual equivalence.

**@⁠Pototoooo** on GitHub · 2026-11-27 07:30 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/189) `Pototoooo:perf/index-shader-skip-hashes` → `main` · +38712 −3663 · 177 files · 507 commits · closed without merging ## Summary Index the normalized `VICTORY_SKIP_PIPELINES` hashes once in a set. Both the live draw/dispatch path and the warm-pipeline prefilter now use set membership. Hash normalization, validation, and the first matching shader in the pipeline are preserved. This affects the opt-in `VICTORY_SKIP_PIPELINES` workaround. An unset or empty list still returns before looking up shader hashes. The benchmark below measures the CPU lookup in isolation for a large list. A game launch check is documented below. A stable in-game performance comparison and visual validation remain pending. ## Validation - `victory-gpu` pipeline unit tests with all features: 34 passed, 1 ignored. `victory warm` unit tests with diagnostics: 9 passed. Coverage includes normalized duplicate hashes, warm recipe matching, and skipping before queueing. - Rust 1.98.1 optimized lookup-only benchmark on a Ryzen 5 9600X. With 1,034 distinct 16-character hashes and 250,000 lookups (15,625 hits), the median of seven runs was 388.595 ms for the previous vector and 5.169 ms for the set. Both returned the same result count. This measures lookup overhead with a large configured list and does not measure game frame rate or shader compile time. - Follow-up with the four hashes in `docs/findings-rtx4090.md`, using the same isolated benchmark: 2.308 ms for the vector and 3.423 ms for the set. Further runs showed the same direction. A short configured list can be slower with the set. ## Game launch check Built the base (`791648b`) and PR head (`f8dde0d`) with the same Windows GNU diagnostics profile and ran each on an RTX 5070 using the same copied save and starting Victory cache, Series S, 1920x1080 scene output, frame generation off, and the four hashes above. Both ran through startup and logged skips for all four hashes during rendering. The recorded intervals still had ongoing pipeline compilation and different draw counts. This run cannot establish a frame-rate change or visual equivalence.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 07:31:25 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 07:48 UTC · original

@⁠Pototoooo The local skip-list checks and all nine warm-worker tests passed with this head. The set preserves the first matching shader and normalises duplicate hashes for both callers. I’ll keep the tested commit in view while the PR is in draft.

**@⁠TaynanGT** on GitHub · 2026-11-27 07:48 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/189#issuecomment-7212831389) @⁠Pototoooo The local skip-list checks and all nine warm-worker tests passed with this head. The set preserves the first matching shader and normalises duplicate hashes for both callers. I’ll keep the tested commit in view while the PR is in draft.
github-bot closed this pull request 2026-11-30 17:21:04 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 17:16 UTC · original

main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

**@⁠TaynanGT** on GitHub · 2026-11-30 17:16 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/189#issuecomment-7285995794) `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.