gpu(texture,draw): recheck all-zero uploaded textures on the next frame #251

Closed
github-bot wants to merge 1 commit from gh-pr/251/head into gh-pr/251/base
Owner

@⁠Androtim on GitHub · 2026-11-30 12:02 UTC · original
Androtim:feat/iter245-gpu-fast-recheck-empty-texture-memory → main · +70 −6 · 2 files · 1 commits · closed without merging

Summary

  • Add fingerprint_and_empty in crates/victory-gpu/src/texture.rs (sharing implementation with fingerprint) to detect when all sampled bytes of a newly uploaded texture's title memory are zero.
  • Use fingerprint_and_empty at both post-upload recheck sites in crates/victory-gpu/src/draw.rs via recheck_wait, scheduling all-zero placeholder uploads for a next-frame recheck (frame + 1) when VICTORY_RECHECK_SOON is enabled instead of waiting 4 frames for streamed pixels to replace empty placeholders.
  • Add unit tests fingerprint_and_empty_detects_zero_and_nonzero_windows in texture.rs and recheck_wait_schedules_next_frame_only_when_empty_and_soon in draw.rs.

Verification

  • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy: asset policy: 313 files ok
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib texture:: -- --test-threads=1: 15 passed; 0 failed; 4 ignored
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib draw:: -- --test-threads=1: 11 passed; 0 failed; 1 ignored
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings: exit 0
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings: exit 0
**@⁠Androtim** on GitHub · 2026-11-30 12:02 UTC · [original](https://github.com/Androtim/MiniVI/pull/251) `Androtim:feat/iter245-gpu-fast-recheck-empty-texture-memory` → `main` · +70 −6 · 2 files · 1 commits · closed without merging ## Summary - Add `fingerprint_and_empty` in `crates/victory-gpu/src/texture.rs` (sharing implementation with `fingerprint`) to detect when all sampled bytes of a newly uploaded texture's title memory are zero. - Use `fingerprint_and_empty` at both post-upload recheck sites in `crates/victory-gpu/src/draw.rs` via `recheck_wait`, scheduling all-zero placeholder uploads for a next-frame recheck (`frame + 1`) when `VICTORY_RECHECK_SOON` is enabled instead of waiting 4 frames for streamed pixels to replace empty placeholders. - Add unit tests `fingerprint_and_empty_detects_zero_and_nonzero_windows` in `texture.rs` and `recheck_wait_schedules_next_frame_only_when_empty_and_soon` in `draw.rs`. ## Verification - `cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy`: `asset policy: 313 files ok` - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib texture:: -- --test-threads=1`: `15 passed; 0 failed; 4 ignored` - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib draw:: -- --test-threads=1`: `11 passed; 0 failed; 1 ignored` - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings`: exit 0 - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings`: exit 0
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:22:51 +00:00
github-bot closed this pull request 2026-12-01 20:22:52 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 13:03 UTC · original · edited 2026-11-30 16:02 UTC

Automated triage for the maintainers (not an approval).

Verdict: needs-rebase · CI (check): passing

This PR no longer merges cleanly into main.

To change the verdict: Rebase onto current main and resolve conflicts; CI and triage will run again automatically.


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-11-30 13:03 UTC · [original](https://github.com/Androtim/MiniVI/pull/251#issuecomment-7279292007) · edited 2026-11-30 16:02 UTC <!-- minivi-triage v1 head=3313d4009d305f21002ae224b6cd2077034184de verdict=needs-rebase ci=passing at=2026-11-30T16:03:05Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-rebase` · **CI (`check`):** `passing` This PR no longer merges cleanly into `main`. **To change the verdict:** Rebase onto current `main` and resolve conflicts; CI and triage will run again automatically. --- _Generated with Antigravity CLI (`agy`)._
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 15:28 UTC · original

Conflicts against current main (abbc784 after merging #247/#250). Please rebase onto main.

**@⁠Androtim** on GitHub · 2026-11-30 15:28 UTC · [original](https://github.com/Androtim/MiniVI/pull/251#issuecomment-7283059381) Conflicts against current `main` (`abbc784` after merging `#247`/`#250`). Please rebase onto `main`.
Author
Owner

@⁠Androtim on GitHub · 2026-12-01 01:39 UTC · original

Closing stale/conflicted backlog PR per #276. Superseded by the active root-architecture replacement pillars with isolated plain --release A/B verification.

**@⁠Androtim** on GitHub · 2026-12-01 01:39 UTC · [original](https://github.com/Androtim/MiniVI/pull/251#issuecomment-7297746090) Closing stale/conflicted backlog PR per #276. Superseded by the active root-architecture replacement pillars with isolated plain --release A/B verification.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Androtim--MiniVI!251
No description provided.