Display: the title's screenshots save the last presented frame #1837
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1837
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1837"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@kais7654 on GitHub · 2026-11-24 23:10 UTC · original
kais7654:screenshot/backbuffer→main· +354 −105 · 6 files · 1 commits · openThe 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.
@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 incrates/victory-gpu/src/draw.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (needs work) was for an older state ofmain.Generated by Claude Code
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.Merge
Merge the changes and update on Forgejo.