Integrate local fixes and reviewed contributor changes #439

Closed
TaynanGT wants to merge 734 commits from upstream-pr/439 into main
TaynanGT commented 2026-11-29 12:02:09 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T12:02:09Z.


Consolidates the local development branch with 19 contributor PRs, preserving original commits and authorship. This update also includes the latest local strict shader scanning and preload parallelism changes.

Validation of the earlier snapshot: 551 GPU, 227 HLE, 72 loader and 353 shader tests passed; 67 ignored, zero failures. Four launcher configuration cases passed. The subsequent memory changes passed isolated boundary and fragmentation tests; full integrated validation of the latest head is pending.

This remains a draft. Pipeline warming and the 4K boat-route acceptance comparison are not yet complete. No merge or release approval is implied.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5550505262 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/439). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-29T12:02:09Z. --- Consolidates the local development branch with 19 contributor PRs, preserving original commits and authorship. This update also includes the latest local strict shader scanning and preload parallelism changes. Validation of the earlier snapshot: 551 GPU, 227 HLE, 72 loader and 353 shader tests passed; 67 ignored, zero failures. Four launcher configuration cases passed. The subsequent memory changes passed isolated boundary and fragmentation tests; full integrated validation of the latest head is pending. This remains a draft. Pipeline warming and the 4K boat-route acceptance comparison are not yet complete. No merge or release approval is implied.
Kal0s-design commented 2026-11-29 12:30:43 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Kal0s-design on 2026-11-29T12:30:43Z.


Ran the shader preload of this branch (cfd5ebd, release build) on Windows against a 1.0.2.1 dump, with an empty cache each time:

  • Whole game folder: 25,985 shaders, 0 fail, 0 corrupt, scan complete, 495 s. The second --if-needed run printed "already pretranslated" in 2 s, so the stricter marker works here. The 197 that main can't translate now go through.
  • With the 2 GiB skip gone, the big archives (levels.rpf 76 GB, audio.rpf 28 GB, ...) are mapped and read whole. None of them gives a shader: shaders.rpf plus the .exe and .dll files at the top of the folder (18 files) give the same 25,985 in 121 s. While the whole-folder scan ran, the process working set was about 45 GB of mapped archive pages (about 0.3 GB private). Windows can drop those, but on a 16 GB machine that's all of RAM, and on a hard disk it's the #421 wait made several times longer.

#440 makes play.ps1 pass only those files when shaders.rpf is there. The new -RequirePreload / -PreloadOnly path here passes the whole folder too and could use the same list.

AI-assisted: yes

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7255864822 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/439#issuecomment-7255864822). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-11-29T12:30:43Z. --- Ran the shader preload of this branch (cfd5ebd, release build) on Windows against a 1.0.2.1 dump, with an empty cache each time: - Whole game folder: 25,985 shaders, 0 fail, 0 corrupt, scan complete, **495 s**. The second `--if-needed` run printed "already pretranslated" in 2 s, so the stricter marker works here. The 197 that main can't translate now go through. - With the 2 GiB skip gone, the big archives (`levels.rpf` 76 GB, `audio.rpf` 28 GB, ...) are mapped and read whole. None of them gives a shader: `shaders.rpf` plus the `.exe` and `.dll` files at the top of the folder (18 files) give the same 25,985 in **121 s**. While the whole-folder scan ran, the process working set was about 45 GB of mapped archive pages (about 0.3 GB private). Windows can drop those, but on a 16 GB machine that's all of RAM, and on a hard disk it's the #421 wait made several times longer. #440 makes `play.ps1` pass only those files when `shaders.rpf` is there. The new `-RequirePreload` / `-PreloadOnly` path here passes the whole folder too and could use the same list. AI-assisted: yes
Kal0s-design commented 2026-11-29 12:48:03 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Kal0s-design on 2026-11-29T12:48:03Z.


The red Clippy job here comes from two real lints plus the undocumented_unsafe_blocks change. warn in Cargo.toml becomes an error under CI's -D warnings: 89 blocks without features, 131 with --all-features. #442 (against this branch) fixes the two real ones. Without the safety lint, clippy is then clean for both feature sets. Details and per-file counts are in #442.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7256072528 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/439#issuecomment-7256072528). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-11-29T12:48:03Z. --- The red Clippy job here comes from two real lints plus the `undocumented_unsafe_blocks` change. `warn` in `Cargo.toml` becomes an error under CI's `-D warnings`: 89 blocks without features, 131 with `--all-features`. #442 (against this branch) fixes the two real ones. Without the safety lint, clippy is then clean for both feature sets. Details and per-file counts are in #442.
Kal0s-design commented 2026-11-29 13:11:57 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Kal0s-design on 2026-11-29T13:11:57Z.


#442 now covers the whole Clippy job: the two real lints plus a SAFETY comment on every block the new warn flags. Clippy is clean with and without --all-features, the diag check is clean, and the lib tests pass. The commit text in #442 says which comments are moved or repeated from the original author and which reasons are new.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7256360736 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/439#issuecomment-7256360736). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-11-29T13:11:57Z. --- #442 now covers the whole Clippy job: the two real lints plus a SAFETY comment on every block the new `warn` flags. Clippy is clean with and without `--all-features`, the diag check is clean, and the lib tests pass. The commit text in #442 says which comments are moved or repeated from the original author and which reasons are new.
safesearch77 commented 2026-11-29 13:20:22 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by safesearch77 on 2026-11-29T13:20:22Z.


Heads-up on two PRs already merged here: each now has a one-commit follow-up on its branch that you may want in this integration.

  • #409 (XMem page-number recycling), c16c806391: a correctness fix. Once the 21-bit space is used up, a lowest-fit run can reach into the numbers at and above next_page that were never given out, without moving next_page. The next allocation that still fits there then gets those live numbers again, and XMemAllocatePhysicalPages replaces their Slices. The fix is 2 lines in Pages::take (self.next_page = self.next_page.max(first + len)), plus explicit tests for live mappings, the PAGE_LIMIT refusal, and fragmented free runs. It applies cleanly on cfd5ebd. There, the new regression test fails without the fix and passes with it (Wine, victory-hle --lib -- modules::xmem 23/23). It's only reachable after about 124 GiB of total physical allocations; a test found it, and no run has hit it. Details: https://github.com/TaynanGT/Vice-Tay/pull/409#issuecomment-7256459907
  • #414 (VRAM headroom), 937b8b668f: keeps a 1-byte floor when the headroom eats the whole budget, so the budget == 0 "no budget reported" fallback (5 s eviction) doesn't kick in. It cherry-picks cleanly onto cfd5ebd. Details: https://github.com/TaynanGT/Vice-Tay/pull/414#issuecomment-7256460383

AI-assisted: yes (Claude), reviewed locally before posting.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7256464084 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/439#issuecomment-7256464084). Originally posted by [safesearch77](https://github.com/safesearch77) on 2026-11-29T13:20:22Z. --- Heads-up on two PRs already merged here: each now has a one-commit follow-up on its branch that you may want in this integration. - **#409 (XMem page-number recycling), c16c8063912d82ec8fb8a9923816c818ac54c9bf:** a correctness fix. Once the 21-bit space is used up, a lowest-fit run can reach into the numbers at and above `next_page` that were never given out, without moving `next_page`. The next allocation that still fits there then gets those live numbers again, and `XMemAllocatePhysicalPages` replaces their `Slice`s. The fix is 2 lines in `Pages::take` (`self.next_page = self.next_page.max(first + len)`), plus explicit tests for live mappings, the `PAGE_LIMIT` refusal, and fragmented free runs. It applies cleanly on cfd5ebd. There, the new regression test fails without the fix and passes with it (Wine, `victory-hle --lib -- modules::xmem` 23/23). It's only reachable after about 124 GiB of total physical allocations; a test found it, and no run has hit it. Details: https://github.com/TaynanGT/Vice-Tay/pull/409#issuecomment-7256459907 - **#414 (VRAM headroom), 937b8b668f2889ada164f7e3a47ed5e6dbdcef73:** keeps a 1-byte floor when the headroom eats the whole budget, so the `budget == 0` "no budget reported" fallback (5 s eviction) doesn't kick in. It cherry-picks cleanly onto cfd5ebd. Details: https://github.com/TaynanGT/Vice-Tay/pull/414#issuecomment-7256460383 AI-assisted: yes (Claude), reviewed locally before posting.
TaynanGT commented 2026-11-29 13:23:25 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T13:23:25Z.


Thanks for the detailed follow-ups. I have integrated the Clippy fixes locally, the XMem page-number recycling correction from #409, and the positive VRAM budget floor from #414. I also adapted #440 for the optional preload path, keeping the full scan for mandatory validation until I can verify equivalent coverage locally. The current integration still needs the complete test suite and a 4K boat-route run before publication.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7256501674 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/439#issuecomment-7256501674). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-29T13:23:25Z. --- Thanks for the detailed follow-ups. I have integrated the Clippy fixes locally, the XMem page-number recycling correction from #409, and the positive VRAM budget floor from #414. I also adapted #440 for the optional preload path, keeping the full scan for mandatory validation until I can verify equivalent coverage locally. The current integration still needs the complete test suite and a 4K boat-route run before publication.
TaynanGT commented 2026-11-30 17:06:56 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:06:56Z.


Superseded: main has moved to a new line of the code (see #468). Whatever is still worth having from this will come back as a new PR on the current main.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285741393 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/439#issuecomment-7285741393). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T17:06:56Z. --- Superseded: `main` has moved to a new line of the code (see #468). Whatever is still worth having from this will come back as a new PR on the current `main`.

Pull request closed

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!439
No description provided.