GPU diagnostics: encode completed frame captures off the present thread #142
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by Cuebert on 2026-11-24T21:49:18Z.
The 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.