GPU diagnostics: encode completed frame captures off the present thread #142
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!142
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-142"
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?
@Cuebert on GitHub · 2026-11-24 21:49 UTC · original
Cuebert:codex/async-frame-png→main· +122 −2 · 3 files · 1 commits · openThe diagnostic capture path encodes and writes each PNG between the GPU copy completing and the swap chain presenting. This can delay a frame even when the GPU is ready.
Move the completed readback to one encoder thread. It owns the D3D12 resource until the PNG is written. The queue holds two waiting frames and applies backpressure when full. Normal title exit drains the queue.
VICTORY_CAPTURE_SYNC=1keeps a requested frame on the synchronous path for crash investigations.Verification
cargo test --workspace --lockedpassed 496 tests with seven ignored. Workspace all-target, all-feature Clippy with warnings denied and the staged asset-policy check passed.The change affects diagnostic screenshots. Whole-game frame time was not measured on this head. AI-assisted development and testing with Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.