GPU: look at textures picked by index again after their upload #48

Open
Altorru wants to merge 1 commit from upstream-pr/48 into main
Altorru commented 2026-11-25 06:06:45 +00:00 (Migrated from github.com)
First-time contributor

Imported from Zettrox/ztrx. Originally posted by Altorru on 2026-11-25T05:58:36Z.


Ports fxceless/victory-fork@a803c87 onto this tree (applied cleanly; a supervised audit confirmed the changed code is line-for-line identical). A texture a shader picks by index was uploaded once, when the title wrote its view; the title often fills its memory only afterwards, so the host copy kept zeros and the main character's face came out black / hair pale in ~3 launches of 4. Now a whole upload is looked at again after 4, 12, 40, 120 and 400 frames; a changed one is uploaded again. VICTORY_HEAP_RECHECK=0 turns it off. Verification: applied with no conflicts; symbols all exist and blake3 is already a victory-gpu dependency. Could not cross-compile for Windows here (only aarch64-apple-darwin std installed, Rust download unreachable), so Windows CI is the first real build; otherwise the upstream code verbatim.

<!-- greyfinch-sync:Zettrox/ztrx:issue:6598255555 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/pull/48). Originally posted by [Altorru](https://github.com/Altorru) on 2026-11-25T05:58:36Z. --- Ports fxceless/victory-fork@a803c87 onto this tree (applied cleanly; a supervised audit confirmed the changed code is line-for-line identical). A texture a shader picks by index was uploaded once, when the title wrote its view; the title often fills its memory only afterwards, so the host copy kept zeros and the main character's face came out black / hair pale in ~3 launches of 4. Now a whole upload is looked at again after 4, 12, 40, 120 and 400 frames; a changed one is uploaded again. VICTORY_HEAP_RECHECK=0 turns it off. Verification: applied with no conflicts; symbols all exist and blake3 is already a victory-gpu dependency. Could not cross-compile for Windows here (only aarch64-apple-darwin std installed, Rust download unreachable), so Windows CI is the first real build; otherwise the upstream code verbatim.
futurepro62 commented 2026-11-25 16:13:07 +00:00 (Migrated from github.com)
Author
First-time contributor

Imported from Zettrox/ztrx. Originally posted by futurepro62 on 2026-11-25T15:14:56Z.


Full-suite run on Windows, since this PR has no test report yet. Tested exact head 1c5e103 (on its base 90b529f).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (rust-toolchain.toml), DXC + dxil.dll 1.9.2602.17, debug.
  • cargo test --workspace --locked: 496 passed, 0 failed, 7 ignored (main 90b529f on this machine: 492 passed, 0 failed, 7 ignored).
  • cargo clippy --workspace --all-targets --locked -- -D warnings (the CI lint step): passed.
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings (the CI lint step): passed.
  • No new #[test] functions in the diff.

Not tested

  • AMD (ztrx targets NVIDIA), a release build, the game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:Zettrox/ztrx:comment:7166539097 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/pull/48#issuecomment-7166539097). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-25T15:14:56Z. --- Full-suite run on Windows, since this PR has no test report yet. Tested exact head `1c5e103` (on its base `90b529f`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (`rust-toolchain.toml`), DXC + dxil.dll 1.9.2602.17, debug. - `cargo test --workspace --locked`: **496 passed, 0 failed, 7 ignored** (main `90b529f` on this machine: 492 passed, 0 failed, 7 ignored). - `cargo clippy --workspace --all-targets --locked -- -D warnings` (the CI lint step): passed. - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` (the CI lint step): passed. - No new `#[test]` functions in the diff. **Not tested** - AMD (ztrx targets NVIDIA), a release build, the game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
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/48:upstream-pr/48'
git switch 'upstream-pr/48'

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/48'
git switch 'upstream-pr/48'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/48'
git switch 'upstream-pr/48'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/48'
git switch 'main'
git merge --squash 'upstream-pr/48'
git switch 'main'
git merge --ff-only 'upstream-pr/48'
git switch 'main'
git merge 'upstream-pr/48'
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
Zettrox/ztrx!48
No description provided.