A 1280x720 scene under the 1440p output (VICTORY_RENDER_720P=1, off by default) #134

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

@⁠beamdotdev on GitHub · 2026-11-27 18:40 UTC · original
beamdotdev:render-720p → main · +90 −17 · 3 files · 1 commits · open

A third scene size for the Series X profile, beside VICTORY_NATIVE_1440P and VICTORY_RENDER_1080P: the same 2560x1440 output with the scene drawn at 1280x720 (VICTORY_RENDER_720P=1). Off by default; nothing changes unless it is set.

Why

On a card with 8 GB the 1080p scene leaves no room: the card's memory is over its budget, new textures wait, and the card takes 30 to 45 ms of every frame. The Series S profile is the lighter way today, but on this card it draws every character without a head (#100 may be the same fault; a likely cause is being tested here and I will write it up there, not in this pull request). The Series X profile with a 720p scene has the heads and takes the card out of the frame.

What it does

  • native_1440p.rs: the scene sizes are one enum (Scene: Native, P1080, P720). prepare writes the title's temporal scene scale as width / 2560 for the size asked for, 0.5 here; the display mode, the scanout reservation and the Settings viewport load are patched as before, the same for all three. If more than one switch is set the smallest scene wins.
  • run.rs: reads the switch through Scene::from_env(); the patched image goes to a cache folder of its own (images/720p-to-1440p-sdr). With VICTORY_DLSS the switch is left out and said so, as VICTORY_RENDER_1080P already is (VICTORY_DLSS_MODE sets the scene's size there).
  • docs/README-foxhound.md: one line in the switch table.

The launcher scripts, -Res and the F1 menu are not touched: they do not know the size yet, the switch does. I left that to you, since the menu and the scripts are yours to shape.

Measured

One PC: RTX 3070 8 GB, i5-9600K (6 cores, 6 threads), 32 GB, Windows 11; diagnostics builds, the launcher's switch set without DLSS and frame generation, 13 to 15 minute runs of the opening, the layer's own frame-rate lines in 30 s stretches once pipelines were made. The two runs are not at the same place of the title at the same second, so they are held against each other at like draw counts.

1080p scene (VICTORY_RENDER_1080P=1) 720p scene (VICTORY_RENDER_720P=1)
"on the GPU", ms a frame 30 to 45 0 to 8
frame at 3,400 to 3,900 draws 69 to 95 ms 57 to 62 ms
frame at 5,000 to 5,900 draws 100 to 109 ms 76 to 83 ms
frame at 6,900 to 7,500 draws 90 to 94 ms 77 ms
the card's own memory, peak 7.3 GB of a budget of 6.9 ("no room, new textures wait") 6.9 GB of a budget of 7.05
private memory, peak 23.1 GB 22.9 GB
  • Heads, faces and hair are right in 12 window captures of the 720p run (the cell, and the day room with a dozen people).
  • It does nothing for private memory, as the table says: the scene's targets are a small part of it.
  • Not judged: one capture of the Settings control-scheme screen had labels over one another at the 720p scene. The 1080p run never opened that screen, so I cannot say it is new; the change does not touch what lays that screen out.

Tests

  • cargo test --locked -p victory --bin victory native_1440p on this branch (on 29d8dbf7): 3 passed. The retail-image test now checks all three sizes (it needs VICTORY_DISPLAY_PROFILE_TEST_IMAGE; run here with it set), and a new test that needs no image checks that each scene keeps the output's 16:9 shape and that its scale gives its width back.
  • The game runs above were of the same commit on d12eb1b2; on 29d8dbf7 it is built and unit-tested, not run in the game.

No game files, shader code or captures are in this pull request.

**@⁠beamdotdev** on GitHub · 2026-11-27 18:40 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/134) `beamdotdev:render-720p` → `main` · +90 −17 · 3 files · 1 commits · open A third scene size for the Series X profile, beside `VICTORY_NATIVE_1440P` and `VICTORY_RENDER_1080P`: the same 2560x1440 output with the scene drawn at 1280x720 (`VICTORY_RENDER_720P=1`). Off by default; nothing changes unless it is set. ## Why On a card with 8 GB the 1080p scene leaves no room: the card's memory is over its budget, new textures wait, and the card takes 30 to 45 ms of every frame. The Series S profile is the lighter way today, but on this card it draws every character without a head (#100 may be the same fault; a likely cause is being tested here and I will write it up there, not in this pull request). The Series X profile with a 720p scene has the heads and takes the card out of the frame. ## What it does - `native_1440p.rs`: the scene sizes are one enum (`Scene`: `Native`, `P1080`, `P720`). `prepare` writes the title's temporal scene scale as `width / 2560` for the size asked for, 0.5 here; the display mode, the scanout reservation and the Settings viewport load are patched as before, the same for all three. If more than one switch is set the smallest scene wins. - `run.rs`: reads the switch through `Scene::from_env()`; the patched image goes to a cache folder of its own (`images/720p-to-1440p-sdr`). With `VICTORY_DLSS` the switch is left out and said so, as `VICTORY_RENDER_1080P` already is (`VICTORY_DLSS_MODE` sets the scene's size there). - `docs/README-foxhound.md`: one line in the switch table. The launcher scripts, `-Res` and the F1 menu are not touched: they do not know the size yet, the switch does. I left that to you, since the menu and the scripts are yours to shape. ## Measured One PC: RTX 3070 8 GB, i5-9600K (6 cores, 6 threads), 32 GB, Windows 11; diagnostics builds, the launcher's switch set without DLSS and frame generation, 13 to 15 minute runs of the opening, the layer's own frame-rate lines in 30 s stretches once pipelines were made. The two runs are not at the same place of the title at the same second, so they are held against each other at like draw counts. | | 1080p scene (`VICTORY_RENDER_1080P=1`) | 720p scene (`VICTORY_RENDER_720P=1`) | |---|---|---| | "on the GPU", ms a frame | 30 to 45 | 0 to 8 | | frame at 3,400 to 3,900 draws | 69 to 95 ms | 57 to 62 ms | | frame at 5,000 to 5,900 draws | 100 to 109 ms | 76 to 83 ms | | frame at 6,900 to 7,500 draws | 90 to 94 ms | 77 ms | | the card's own memory, peak | 7.3 GB of a budget of 6.9 ("no room, new textures wait") | 6.9 GB of a budget of 7.05 | | private memory, peak | 23.1 GB | 22.9 GB | - Heads, faces and hair are right in 12 window captures of the 720p run (the cell, and the day room with a dozen people). - It does nothing for private memory, as the table says: the scene's targets are a small part of it. - Not judged: one capture of the Settings control-scheme screen had labels over one another at the 720p scene. The 1080p run never opened that screen, so I cannot say it is new; the change does not touch what lays that screen out. ## Tests - `cargo test --locked -p victory --bin victory native_1440p` on this branch (on 29d8dbf7): 3 passed. The retail-image test now checks all three sizes (it needs `VICTORY_DISPLAY_PROFILE_TEST_IMAGE`; run here with it set), and a new test that needs no image checks that each scene keeps the output's 16:9 shape and that its scale gives its width back. - The game runs above were of the same commit on d12eb1b2; on 29d8dbf7 it is built and unit-tested, not run in the game. No game files, shader code or captures are in this pull request.
The third scene size beside VICTORY_NATIVE_1440P and VICTORY_RENDER_1080P:
the same 2560x1440 output, the title's temporal scene scale written as 0.5.
For a card short of memory or time at the larger scenes: on an 8 GB RTX 3070
the 1080p scene took 6.9 GB of the card, 22.6 GB of private memory and 35 ms
of card time a frame.

The three sizes are one enum (native_1440p::Scene); the smallest asked for
wins. The patched image goes to images/720p-to-1440p-sdr. The retail-image
test checks all three; a test without the image checks that each scene keeps
the output's shape and that its scale gives its width back.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 18:46:19 +00:00
This pull request has changes conflicting with the target branch.
  • apps/victory/src/run.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/134/head:github-bot/gh-134'
git switch 'github-bot/gh-134'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-134'
git switch 'github-bot/gh-134'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-134'
git switch 'github-bot/gh-134'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-134'
git switch 'main'
git merge --squash 'github-bot/gh-134'
git switch 'main'
git merge --ff-only 'github-bot/gh-134'
git switch 'main'
git merge 'github-bot/gh-134'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.