Watch textures in composited frames #4993

Open
github-bot wants to merge 1 commit from github-bot/gh-4992 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 16:47 UTC · original
andrewpozdnakov7-jpg:codex2/fix/popwatch-composited-frames → main · +52 −19 · 2 files · 1 commits · open

Fixes #4989 for the 8-bit formats supported by the watcher.

What it changes

When the plane compositor is active, the texture pop watcher now reads the composed 8-bit frame from the back buffer. The read happens in the same present list, before the local overlays are drawn. The back buffer is returned to its previous state after the read. Direct presents keep using their source texture.

A recycled read-back buffer must match the new frame's dimensions and format. The watcher still runs only within the configured time window and its existing queue limit. A changing display overlay can contribute to the counts.

How it was tested

  • A focused Windows Rust fixture used the exact present routing and pool selection from 5fabb46e and 36e6a26a, with stub D3D12 calls. Main recorded no composed read. The patch recorded the back-buffer read between the two transitions, restored the state when no read was returned, and recorded no barriers outside the watch window. Direct reads still used the original source. Tested a pool with different sizes and RGBA/BGRA formats.
  • cargo check --locked -p victory-gpu --features diagnostics and cargo xtask policy --staged passed on Windows.
  • GPU and game run are pending. Main's CI check has five existing Clippy errors tracked in #4708.

Checked for overlap

  • Searched for #4989, VICTORY_POP_WATCH, and the affected files. #3488 wraps the copy call with its checked-copy helper. #4659 changes the swap-chain format. Neither adds the composed source to the watcher.

@⁠CLHelper, the setup in #4989 could confirm that the composed presentation now produces pop-watch lines.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 16:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4992) `andrewpozdnakov7-jpg:codex2/fix/popwatch-composited-frames` → `main` · +52 −19 · 2 files · 1 commits · open Fixes #4989 for the 8-bit formats supported by the watcher. ## What it changes When the plane compositor is active, the texture pop watcher now reads the composed 8-bit frame from the back buffer. The read happens in the same present list, before the local overlays are drawn. The back buffer is returned to its previous state after the read. Direct presents keep using their source texture. A recycled read-back buffer must match the new frame's dimensions and format. The watcher still runs only within the configured time window and its existing queue limit. A changing display overlay can contribute to the counts. ## How it was tested - A focused Windows Rust fixture used the exact present routing and pool selection from `5fabb46e` and `36e6a26a`, with stub D3D12 calls. Main recorded no composed read. The patch recorded the back-buffer read between the two transitions, restored the state when no read was returned, and recorded no barriers outside the watch window. Direct reads still used the original source. Tested a pool with different sizes and RGBA/BGRA formats. - `cargo check --locked -p victory-gpu --features diagnostics` and `cargo xtask policy --staged` passed on Windows. - GPU and game run are pending. Main's [CI check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539) has five existing Clippy errors tracked in #4708. ## Checked for overlap - [x] Searched for #4989, `VICTORY_POP_WATCH`, and the affected files. #3488 wraps the copy call with its checked-copy helper. #4659 changes the swap-chain format. Neither adds the composed source to the watcher. @⁠CLHelper, the setup in #4989 could confirm that the composed presentation now produces pop-watch lines. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 16:51:44 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4993/head:github-bot/gh-4992'
git switch 'github-bot/gh-4992'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4992'
git switch 'github-bot/gh-4992'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4992'
git switch 'github-bot/gh-4992'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4992'
git switch 'main'
git merge --squash 'github-bot/gh-4992'
git switch 'main'
git merge --ff-only 'github-bot/gh-4992'
git switch 'main'
git merge 'github-bot/gh-4992'
git push origin 'main'
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/trustno1-coder--VIctory-NVIDIA!4993
No description provided.