Turn on the shorter code table on RTX 50 cards (#221) #428

Open
zmelumian972 wants to merge 1 commit from upstream-pr/428 into main
zmelumian972 commented 2026-11-28 21:12:59 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-28T21:12:59Z.


Main has the #221 fix (code_table_start, ce27154a), but only behind VICE_TAY_CODE_TABLE_AFTER=1. It is off by default after the RTX 3080 Ti regression on #550. Nothing turns it on, so the cards that need it still crash: an RTX 5090 gets Xid 13 at the start of the intro, and an RTX 5080 reserves gigabytes of video memory.

vice-tay play now sets VICE_TAY_CODE_TABLE_AFTER=1 when the adapter is an RTX 50 card (Blackwell, workstation cards included, via rtx_generation). A value from F1 or --set (including 0) wins. Older cards are unchanged. The switch is already part of the shader cache key.

  • rtx_generations_from_names now also covers needs_code_table_after (passes under Wine).
  • Earlier evidence, from before main's rewrite, on an RTX 5090 with this table start: single-shader repro clean for 150 s (was 18/18 failing); full game clean for 240 s past the intro in 2 of 2 runs (was Xid 13 at about 65 s).

Fixes #221 on RTX 50 cards.

🤖 Generated with Claude Code

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5544624135 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/428). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-28T21:12:59Z. --- Main has the #221 fix (`code_table_start`, ce27154a), but only behind `VICE_TAY_CODE_TABLE_AFTER=1`. It is off by default after the RTX 3080 Ti regression on #550. Nothing turns it on, so the cards that need it still crash: an RTX 5090 gets Xid 13 at the start of the intro, and an RTX 5080 reserves gigabytes of video memory. `vice-tay play` now sets `VICE_TAY_CODE_TABLE_AFTER=1` when the adapter is an RTX 50 card (Blackwell, workstation cards included, via `rtx_generation`). A value from F1 or `--set` (including `0`) wins. Older cards are unchanged. The switch is already part of the shader cache key. - `rtx_generations_from_names` now also covers `needs_code_table_after` (passes under Wine). - Earlier evidence, from before main's rewrite, on an RTX 5090 with this table start: single-shader repro clean for 150 s (was 18/18 failing); full game clean for 240 s past the intro in 2 of 2 runs (was Xid 13 at about 65 s). Fixes #221 on RTX 50 cards. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Kal0s-design commented 2026-11-28 21:47:36 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Kal0s-design on 2026-11-28T21:47:36Z.


For whoever merges: the change to lower.rs here is line for line the same as #408 (same code_table_start, same TRANSLATOR_VERSION 16 bump), ported from the same upstream commit. This PR adds the #221 explanation (the per-thread local array on vkd3d-proton/NVIDIA), which is a good reason on its own, but only one of the two should land. I ran the full victory-shader suite natively on Windows for #408: 344 passed against 343 on main, with the GPU execution tests included.

AI-assisted: yes

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7246276405 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/428#issuecomment-7246276405). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-11-28T21:47:36Z. --- For whoever merges: the change to `lower.rs` here is line for line the same as #408 (same `code_table_start`, same `TRANSLATOR_VERSION` 16 bump), ported from the same upstream commit. This PR adds the #221 explanation (the per-thread local array on vkd3d-proton/NVIDIA), which is a good reason on its own, but only one of the two should land. I ran the full `victory-shader` suite natively on Windows for #408: 344 passed against 343 on `main`, with the GPU execution tests included. AI-assisted: yes
TaynanGT commented 2026-11-29 11:35:33 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T11:35:33Z.


Thanks for identifying the duplicate implementation with #408. We should land the constant-table correction only once and preserve the Linux explanation and native Windows test evidence in the surviving change. I'll keep the translator version bump coordinated.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7255216457 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/428#issuecomment-7255216457). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-29T11:35:33Z. --- Thanks for identifying the duplicate implementation with #408. We should land the constant-table correction only once and preserve the Linux explanation and native Windows test evidence in the surviving change. I'll keep the translator version bump coordinated.
zmelumian972 commented 2026-11-30 17:04:29 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-30T17:04:29Z.


Superseded by the new main: ce27154a has this code-table start as the opt-in VICE_TAY_CODE_TABLE_AFTER=1, left off by default after the A/B test on #550.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285677705 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/428#issuecomment-7285677705). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-30T17:04:29Z. --- Superseded by the new main: ce27154a has this code-table start as the opt-in `VICE_TAY_CODE_TABLE_AFTER=1`, left off by default after the A/B test on #550.
zmelumian972 commented 2026-11-30 17:25:19 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-30T17:25:19Z.


Reopened and rebased onto the rewritten main. The table-start logic is already on main behind VICE_TAY_CODE_TABLE_AFTER (ce27154a). This PR now only turns it on for RTX 50 cards, which are the ones that fault with the whole-program table, and leaves older cards as #550 decided.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7286254690 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/428#issuecomment-7286254690). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-30T17:25:19Z. --- Reopened and rebased onto the rewritten main. The table-start logic is already on main behind `VICE_TAY_CODE_TABLE_AFTER` (ce27154a). This PR now only turns it on for RTX 50 cards, which are the ones that fault with the whole-program table, and leaves older cards as #550 decided.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/428:upstream-pr/428'
git switch 'upstream-pr/428'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/428'
git switch 'upstream-pr/428'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/428'
git switch 'upstream-pr/428'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/428'
git switch 'main'
git merge --squash 'upstream-pr/428'
git switch 'main'
git merge --ff-only 'upstream-pr/428'
git switch 'main'
git merge 'upstream-pr/428'
git push origin 'main'
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
TaynanGT/Vice-Tay!428
No description provided.