Open the window at 1280x720 by default (VICTORY_WINDOW_MAX_*) #100

Open
kalijerry wants to merge 1 commit from upstream-pr/100 into main
kalijerry commented 2026-11-26 03:24:49 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by kalijerry on 2026-11-26T03:24:49Z.


Runs currently open the host window at whatever the title asks, which on a 4K desktop means a large flip chain and the desktop compositor over the card for no gain: the swap chain keeps the texture's size either way and stretches.

This opens the window at most 1,280 by 720, scaled so the aspect is kept. VICTORY_WINDOW_MAX_WIDTH and VICTORY_WINDOW_MAX_HEIGHT change it, 0 for no limit of that side.

  • cargo test -p victory-gpu --lib: 326 passed.
  • RTX 3080 live: window opens small; frame rate is unchanged (the swap chain still carries the full texture), but the compositor stops showing over the card and the back buffers are a quarter the size.
<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6618823163 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/100). Originally posted by [kalijerry](https://github.com/kalijerry) on 2026-11-26T03:24:49Z. --- Runs currently open the host window at whatever the title asks, which on a 4K desktop means a large flip chain and the desktop compositor over the card for no gain: the swap chain keeps the texture's size either way and stretches. This opens the window at most **1,280 by 720**, scaled so the aspect is kept. `VICTORY_WINDOW_MAX_WIDTH` and `VICTORY_WINDOW_MAX_HEIGHT` change it, `0` for no limit of that side. - `cargo test -p victory-gpu --lib`: 326 passed. - RTX 3080 live: window opens small; frame rate is unchanged (the swap chain still carries the full texture), but the compositor stops showing over the card and the back buffers are a quarter the size.
avatarmanz commented 2026-11-26 07:33:20 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by avatarmanz on 2026-11-26T07:33:20Z.


Left open: this caps the default window on every PC at 1280x720 (AMD included); maintainer's call.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7185582945 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/100#issuecomment-7185582945). Originally posted by [avatarmanz](https://github.com/avatarmanz) on 2026-11-26T07:33:20Z. --- Left open: this caps the default window on every PC at 1280x720 (AMD included); maintainer's call.
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/100:upstream-pr/100'
git switch 'upstream-pr/100'

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/100'
git switch 'upstream-pr/100'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/100'
git switch 'upstream-pr/100'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/100'
git switch 'main'
git merge --squash 'upstream-pr/100'
git switch 'main'
git merge --ff-only 'upstream-pr/100'
git switch 'main'
git merge 'upstream-pr/100'
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
avatarmanz/VIctory-7900XTX!100
No description provided.