Display: the title's screenshots save the last presented frame #1837

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

@⁠kais7654 on GitHub · 2026-11-24 23:10 UTC · original
kais7654:screenshot/backbuffer → main · +354 −105 · 6 files · 1 commits · open

The capture item in display (slot 0x28) failed as if capture were unavailable, and its comment spelled out what was missing: a hook in the GPU side reading the last presented frame back on request. Done. A screenshot now asks the next present to copy the back buffer into a readback buffer (the copy every present submission already waits for), maps its rows, and writes a full-size 8-bit RGB PNG to VICTORY_CAPTURE or ./screenshots, path in the log.

victory-gpu: new screenshot module carries the frame from present time (PENDING/PRESENTED/LAST, take polling to WAIT); read_back and the PNG chunking move here from capture, whose diagnostics path now shares it — one readback path instead of two copies of the same unsafe code. The API's result structure is not written: its layout is not known, the file is the answer.

Tests: PNG roundtrip (2x2 BGRA, pitch, filter bytes, zlib bytes) and a request clearing an older frame. victory-hle 97/97.

Generated by Mistral Vibe.

**@⁠kais7654** on GitHub · 2026-11-24 23:10 UTC · [original](https://github.com/Marvisak/VIctory/pull/1837) `kais7654:screenshot/backbuffer` → `main` · +354 −105 · 6 files · 1 commits · open The capture item in display (slot 0x28) failed as if capture were unavailable, and its comment spelled out what was missing: a hook in the GPU side reading the last presented frame back on request. Done. A screenshot now asks the next present to copy the back buffer into a readback buffer (the copy every present submission already waits for), maps its rows, and writes a full-size 8-bit RGB PNG to VICTORY_CAPTURE or ./screenshots, path in the log. victory-gpu: new screenshot module carries the frame from present time (PENDING/PRESENTED/LAST, take polling to WAIT); read_back and the PNG chunking move here from capture, whose diagnostics path now shares it — one readback path instead of two copies of the same unsafe code. The API's result structure is not written: its layout is not known, the file is the answer. Tests: PNG roundtrip (2x2 BGRA, pitch, filter bytes, zlib bytes) and a request clearing an older frame. victory-hle 97/97. Generated by Mistral Vibe.
The capture item in display (slot 0x28) failed as if capture were
unavailable, and its comment spelled out what was missing: a hook in the
GPU side reading the last presented frame back on request. Done. A
screenshot now asks the next present to copy the back buffer into a
readback buffer (the copy every present submission already waits for),
maps its rows, and writes a full-size 8-bit RGB PNG to VICTORY_CAPTURE
or ./screenshots, path in the log.

victory-gpu: new screenshot module carries the frame from present time
(PENDING/PRESENTED/LAST, take polling to WAIT); read_back and the PNG
chunking move here from capture, whose diagnostics path now shares it —
one readback path instead of two copies of the same unsafe code. The
API's result structure is not written: its layout is not known, the file
is the answer.

Tests: PNG roundtrip (2x2 BGRA, pitch, filter bytes, zlib bytes) and a
request clearing an older frame. victory-hle 97/97.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:46:14 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 06:33 UTC · original · edited 2026-11-25 15:58 UTC

Automated triage for the maintainers.

This pull request no longer merges cleanly into main (conflicts in crates/victory-gpu/src/draw.rs). It will be reviewed once it is rebased onto the current main. The earlier verdict (needs work) was for an older state of main.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 06:33 UTC · [original](https://github.com/Marvisak/VIctory/pull/1837#issuecomment-7154911866) · edited 2026-11-25 15:58 UTC <!-- victory-triage v1 head=3dcdfeec93861e7db9791f072f9e424910c718ee verdict=needs-rebase at=2026-11-25T16:04:00Z --> Automated triage for the maintainers. This pull request no longer merges cleanly into `main` (conflicts in `crates/victory-gpu/src/draw.rs`). It will be reviewed once it is rebased onto the current `main`. The earlier verdict (needs work) was for an older state of `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/draw.rs
  • crates/victory-gpu/src/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1837'
git switch 'github-bot/gh-1837'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1837'
git switch 'github-bot/gh-1837'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1837'
git switch 'main'
git merge --squash 'github-bot/gh-1837'
git switch 'main'
git merge --ff-only 'github-bot/gh-1837'
git switch 'main'
git merge 'github-bot/gh-1837'
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/Marvisak--VIctory!1837
No description provided.