gpu: lean and hot compares of card copies (VICTORY_CARD_COMPARE_EVERY/HOT, off by default) #618

Open
KhryptorGraphics wants to merge 1 commit from upstream-pr/618 into main
KhryptorGraphics commented 2026-11-28 01:55:19 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by KhryptorGraphics on 2026-11-28T01:55:19Z.


What

Ports the lean and hot compares of card copies from edsuuu's VI-BR-PORT (GPL-3.0). Both are off by default.

  • VICTORY_CARD_COMPARE_EVERY=<D>: a declared range is read whole once in D submissions; in between, only the pieces found changed lately are compared.
  • VICTORY_CARD_COMPARE_HOT=<D>: skipped pieces are owed and covered within D submissions. It is off with VICTORY_RELAY_COPY=1, which the launcher sets, so under the launcher only EVERY acts. The copy-queue follow-up (VI-BR-PORT a35f2fd) is not ported.
  • New pure module host/heat.rs with its unit tests, and an ignored WARP end-to-end test in upcheck.rs.

Source commits: 0033109, 30783d6, 1a1110f, 730b76f, bd9a382, b817ae6, ad8dbec. The source reports 2.4 GB read and 10 ms of card time a frame saved in the opening scene.

Verification

  • Cross-checked for Windows on a Linux machine: cargo check -p victory-gpu --target x86_64-pc-windows-msvc --tests passes with no new warnings.
  • Not run in the game. No frame-rate or stability measurement was taken on this fork; figures quoted are the source fork's own.
  • Clippy and the test suite have not run locally; CI on this pull request is their first run.
  • Reviewed independently against the source commits before pushing.
  • heat.rs's 8 unit tests pass when built alone on Linux.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5535569857 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/618). Originally posted by [KhryptorGraphics](https://github.com/KhryptorGraphics) on 2026-11-28T01:55:19Z. --- ## What Ports the lean and hot compares of card copies from edsuuu's VI-BR-PORT (GPL-3.0). Both are **off by default**. - `VICTORY_CARD_COMPARE_EVERY=<D>`: a declared range is read whole once in D submissions; in between, only the pieces found changed lately are compared. - `VICTORY_CARD_COMPARE_HOT=<D>`: skipped pieces are owed and covered within D submissions. It is off with `VICTORY_RELAY_COPY=1`, which the launcher sets, so under the launcher only EVERY acts. The copy-queue follow-up (VI-BR-PORT a35f2fd) is not ported. - New pure module `host/heat.rs` with its unit tests, and an ignored WARP end-to-end test in `upcheck.rs`. Source commits: 0033109, 30783d6, 1a1110f, 730b76f, bd9a382, b817ae6, ad8dbec. The source reports 2.4 GB read and 10 ms of card time a frame saved in the opening scene. ## Verification - Cross-checked for Windows on a Linux machine: `cargo check -p victory-gpu --target x86_64-pc-windows-msvc --tests` passes with no new warnings. - **Not run in the game.** No frame-rate or stability measurement was taken on this fork; figures quoted are the source fork's own. - Clippy and the test suite have not run locally; CI on this pull request is their first run. - Reviewed independently against the source commits before pushing. - `heat.rs`'s 8 unit tests pass when built alone on Linux.
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/618:upstream-pr/618'
git switch 'upstream-pr/618'

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/618'
git switch 'upstream-pr/618'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/618'
git switch 'upstream-pr/618'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/618'
git switch 'main'
git merge --squash 'upstream-pr/618'
git switch 'main'
git merge --ff-only 'upstream-pr/618'
git switch 'main'
git merge 'upstream-pr/618'
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
trustno1-coder/VIctory-NVIDIA!618
No description provided.