Present: one 10-bit swap chain format for the whole run (VICTORY_FIXED_SWAP) #4659

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

@⁠101Leafy on GitHub · 2026-12-01 00:52 UTC · original
101Leafy:nv/fixed-swap → main · +38 −10 · 1 files · 1 commits · open

The swap chain took the format of each frame's scene. A change between an 8-bit, 10-bit or float scene made its buffers again in the middle of play, with a full wait for every present sent ahead.

Now the swap chain is R10G10B10A2 for the whole run:

  • A plane of that format family is copied as before.
  • A plane of another family is drawn into it by the existing single-plane compositor, made again when its format changes.
  • If the compositor cannot be made for 10-bit, the run goes back to the scene's own format and presents again.
  • A plane no shader can read keeps its own format.

VICTORY_FIXED_SWAP=0 turns it off. cargo check -p victory-gpu --tests is clean.

**@⁠101Leafy** on GitHub · 2026-12-01 00:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4658) `101Leafy:nv/fixed-swap` → `main` · +38 −10 · 1 files · 1 commits · open The swap chain took the format of each frame's scene. A change between an 8-bit, 10-bit or float scene made its buffers again in the middle of play, with a full wait for every present sent ahead. Now the swap chain is R10G10B10A2 for the whole run: - A plane of that format family is copied as before. - A plane of another family is drawn into it by the existing single-plane compositor, made again when its format changes. - If the compositor cannot be made for 10-bit, the run goes back to the scene's own format and presents again. - A plane no shader can read keeps its own format. `VICTORY_FIXED_SWAP=0` turns it off. `cargo check -p victory-gpu --tests` is clean.
The swap chain took the format of each frame's scene, so a change between an 8-bit, 10-bit or float scene made its buffers again in the middle of play, with a full wait for every present sent ahead. Now the swap chain is R10G10B10A2 for the whole run. A plane of that family is copied as before, and a plane of another family is drawn into it by the single-plane compositor. If the compositor cannot be made for that format, the run goes back to the scene's own format.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 00:57:54 +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/4659/head:github-bot/gh-4658'
git switch 'github-bot/gh-4658'

Merge

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