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

Open
101Leafy wants to merge 1 commit from upstream-pr/4658 into main
101Leafy commented 2026-12-01 00:52:54 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-12-01T00:52:54Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5576646883 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4658). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-12-01T00:52:54Z. --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/4658:upstream-pr/4658'
git switch 'upstream-pr/4658'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/4658'
git switch 'upstream-pr/4658'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/4658'
git switch 'upstream-pr/4658'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/4658'
git switch 'main'
git merge --squash 'upstream-pr/4658'
git switch 'main'
git merge --ff-only 'upstream-pr/4658'
git switch 'main'
git merge 'upstream-pr/4658'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA!4658
No description provided.