Loader: add opt-in reduced render scales #1323

Open
github-bot wants to merge 2 commits from github-bot/gh-1323 into main AGit
Owner

@⁠Filip722 on GitHub · 2026-11-26 15:10 UTC · original
Filip722:loader/half-render-scale → main · +233 −0 · 3 files · 2 commits · open

Summary

Set VICTORY_RENDER_SCALE=0.4 or VICTORY_RENDER_SCALE=0.5 to select the title's built-in upscaler with a fixed render scale on the supported Series S build. Lower resolution gives the renderer more headroom on an 8 GB GPU.

The loader verifies the build fingerprint and all expected mapped bytes before patching. It restores the page protections and flushes the instruction cache before launch. The rendering approach follows VIctory-NVIDIA 033be27.

Verification

Bazzite 44, RTX 5060 Laptop 8 GB, NVIDIA 615.78.08, GE-Proton11-14, vkd3d-proton 3.2.0. The matched Series S replays used the same executable, offline checkpoint, shader caches and display settings. The scale setting was the only launch change.

Scale Unique Presents in 46 s FPS Median / p95 interval Min. free VRAM
50% 276 5.98 163 / 190 ms 1618 MiB
40% 300 6.52 146 / 176 ms 1913 MiB

Both settings rendered the same scene and responded to camera input. Ten completed camera-turn frames took about 3.05 seconds in both runs. The 40% view was softer. These are single-run measurements and NVMe activity differed between arms.

The current PR branch passed three focused Windows loader tests under GE-Proton, including both scale choices and the mapped-page check. Windows-target Clippy passed with warnings denied and the staged asset check passed.

Assisted by Codex (GPT-6.2-Sol High).

**@⁠Filip722** on GitHub · 2026-11-26 15:10 UTC · [original](https://github.com/fxceless/victory-fork/pull/1323) `Filip722:loader/half-render-scale` → `main` · +233 −0 · 3 files · 2 commits · open ## Summary Set VICTORY_RENDER_SCALE=0.4 or VICTORY_RENDER_SCALE=0.5 to select the title's built-in upscaler with a fixed render scale on the supported Series S build. Lower resolution gives the renderer more headroom on an 8 GB GPU. The loader verifies the build fingerprint and all expected mapped bytes before patching. It restores the page protections and flushes the instruction cache before launch. The rendering approach follows [VIctory-NVIDIA 033be27](https://github.com/trustno1-coder/VIctory-NVIDIA/commit/033be27f336e395745667df5fe20160e375209ca). ## Verification Bazzite 44, RTX 5060 Laptop 8 GB, NVIDIA 615.78.08, GE-Proton11-14, vkd3d-proton 3.2.0. The matched Series S replays used the same executable, offline checkpoint, shader caches and display settings. The scale setting was the only launch change. | Scale | Unique Presents in 46 s | FPS | Median / p95 interval | Min. free VRAM | | --- | ---: | ---: | ---: | ---: | | 50% | 276 | 5.98 | 163 / 190 ms | 1618 MiB | | 40% | 300 | 6.52 | 146 / 176 ms | 1913 MiB | Both settings rendered the same scene and responded to camera input. Ten completed camera-turn frames took about 3.05 seconds in both runs. The 40% view was softer. These are single-run measurements and NVMe activity differed between arms. The current PR branch passed three focused Windows loader tests under GE-Proton, including both scale choices and the mapped-page check. Windows-target Clippy passed with warnings denied and the staged asset check passed. Assisted by Codex (GPT-6.2-Sol High).
Assisted by Codex (GPT-6.2-Sol High).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 15:13:19 +00:00
Author
Owner

@⁠m335671 on GitHub · 2026-11-26 16:42 UTC · original

A data point from Windows on an RTX 4070 12 GB (driver 32.0.16.2124), Series X profile: the option works, but the gain here is small.

Setup: diagnostics build of main 58de9bf with this PR and #1093, #1096 and #799 merged in, warm cache, from a save to the first room, then idle, scripted presses. Switch set as in my last comment on #776, plus VICTORY_RENDER_SCALE=0.5. One launch.

  • The log shows title built-in upscaler selected at render scale 0.5.
  • With it: 9.3–10.8 fps (92–108 ms a frame), our lists on the card 66.9 ms a frame.
  • Without it (the run on ceb9e1f + the same PRs, same switches): 8.8–9.9 fps, 75.3 ms on the card.
  • The picture is lit and complete, a little softer. No device removal.

Halving the render size takes only about 8 ms off the card here. In a per-command timing run of the same scene, most of the card's time went to about 5,100 small indirect executions a frame (43.6 ms), not to resolution-bound passes. The preparing thread (45–53 ms) is close behind.

Caveat: the two runs are on different main commits (ceb9e1f against 58de9bf), so a part of the difference may come from those commits.

AI use: the run was done on my machine. Claude Code (Claude Opus 5.5) built and ran it, read the log and wrote this comment.

**@⁠m335671** on GitHub · 2026-11-26 16:42 UTC · [original](https://github.com/fxceless/victory-fork/pull/1323#issuecomment-7197996117) A data point from Windows on an RTX 4070 12 GB (driver 32.0.16.2124), Series X profile: the option works, but the gain here is small. **Setup:** diagnostics build of `main` `58de9bf` with this PR and #1093, #1096 and #799 merged in, warm cache, from a save to the first room, then idle, scripted presses. Switch set as in my last comment on #776, plus `VICTORY_RENDER_SCALE=0.5`. One launch. - The log shows `title built-in upscaler selected at render scale 0.5`. - With it: **9.3–10.8 fps** (92–108 ms a frame), our lists on the card 66.9 ms a frame. - Without it (the run on `ceb9e1f` + the same PRs, same switches): 8.8–9.9 fps, 75.3 ms on the card. - The picture is lit and complete, a little softer. No device removal. Halving the render size takes only about 8 ms off the card here. In a per-command timing run of the same scene, most of the card's time went to about 5,100 small indirect executions a frame (43.6 ms), not to resolution-bound passes. The preparing thread (45–53 ms) is close behind. Caveat: the two runs are on different `main` commits (`ceb9e1f` against `58de9bf`), so a part of the difference may come from those commits. AI use: the run was done on my machine. Claude Code (Claude Opus 5.5) built and ran it, read the log and wrote this comment.
github-bot changed title from Loader: add an opt-in half-scale render mode to Loader: add opt-in reduced render scales 2026-11-26 19:10:07 +00:00
Assisted by Codex (GPT-6.2-Sol High).
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/1323/head:github-bot/gh-1323'
git switch 'github-bot/gh-1323'

Merge

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