Cover painted texture recheck lifetime #2651

Open
julioleaosaphira wants to merge 1 commit from upstream-pr/2651 into main
julioleaosaphira commented 2026-11-29 15:33:39 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by julioleaosaphira on 2026-11-29T15:33:39Z.


What it changes

Follow-up to #1573: preserve regression coverage for the recheck lifetime of painted textures. Extract the existing unchanged-texture scheduling decision into a small pure helper; its production behaviour, defaults and environment switches stay the same.

Two synthetic tests check that:

  • a texture already marked PAINTED remains watched through 1,024 unchanged checks, for intervals of 1, 4 and 120 frames;
  • ordinary textures retain the finite 576-frame schedule with the switch on or off, and an inactive painted marker retires safely.

No game files, GPU fixtures or new dependencies. This is test coverage, not a claim to fix remaining face corruption or improve FPS.

How it was tested

Base: main 829188e9; Windows 11 x64, pinned Rust 1.98.1, RTX 5060 Ti 16 GB. New tests do not initialise a GPU.

  • Before: no focused coverage of this scheduling decision.
  • After: cargo test --profile diag --features diagnostics --locked -p victory-gpu --lib painted_texture_tests -- --test-threads=1: 2 passed.
  • Diagnostics validation locally included the minimal build repair from #2593, kept off this PR branch. The diagnostics application build passed.
  • Full diagnostics GPU library suite, serial: 989 passed, 1 failed, 59 ignored. The remaining failure is the existing bgrx_plane_selects_a_typed_view assertion addressed by #2632. A parallel run also failed places_written_after_sending_are_learned; that test passed alone and in the serial suite.
  • Changed-file asset policy: 1 file passed. git diff --check passed.
  • Existing main blockers remain: strict Clippy stops in victory-shader (unused imports and while_immutable_condition); whole-tree asset policy rejects the unchanged heap_sites/frame_users.rs literal run. No policy or lint suppression is added here.
  • Shader wave sizes / gameplay FPS: not applicable; shader translation is unchanged. No visual fix has been validated.

Checked for overlap

  • Searched current PRs and main before starting and again after the morning merge. #1573 and #1706 are now merged; this adds only focused lifetime tests. Related build/test repairs #2593 and #2632 are left to their existing authors.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5552233554 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2651). Originally posted by [julioleaosaphira](https://github.com/julioleaosaphira) on 2026-11-29T15:33:39Z. --- ## What it changes Follow-up to #1573: preserve regression coverage for the recheck lifetime of painted textures. Extract the existing unchanged-texture scheduling decision into a small pure helper; its production behaviour, defaults and environment switches stay the same. Two synthetic tests check that: - a texture already marked PAINTED remains watched through 1,024 unchanged checks, for intervals of 1, 4 and 120 frames; - ordinary textures retain the finite 576-frame schedule with the switch on or off, and an inactive painted marker retires safely. No game files, GPU fixtures or new dependencies. This is test coverage, not a claim to fix remaining face corruption or improve FPS. ## How it was tested Base: main 829188e9; Windows 11 x64, pinned Rust 1.98.1, RTX 5060 Ti 16 GB. New tests do not initialise a GPU. - Before: no focused coverage of this scheduling decision. - After: cargo test --profile diag --features diagnostics --locked -p victory-gpu --lib painted_texture_tests -- --test-threads=1: 2 passed. - Diagnostics validation locally included the minimal build repair from #2593, kept off this PR branch. The diagnostics application build passed. - Full diagnostics GPU library suite, serial: 989 passed, 1 failed, 59 ignored. The remaining failure is the existing bgrx_plane_selects_a_typed_view assertion addressed by #2632. A parallel run also failed places_written_after_sending_are_learned; that test passed alone and in the serial suite. - Changed-file asset policy: 1 file passed. git diff --check passed. - Existing main blockers remain: strict Clippy stops in victory-shader (unused imports and while_immutable_condition); whole-tree asset policy rejects the unchanged heap_sites/frame_users.rs literal run. No policy or lint suppression is added here. - Shader wave sizes / gameplay FPS: not applicable; shader translation is unchanged. No visual fix has been validated. ## Checked for overlap - [x] Searched current PRs and main before starting and again after the morning merge. #1573 and #1706 are now merged; this adds only focused lifetime tests. Related build/test repairs #2593 and #2632 are left to their existing authors.
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/2651:upstream-pr/2651'
git switch 'upstream-pr/2651'

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