Loader: add opt-in reduced render scales #1320

Open
Filip722 wants to merge 11 commits from upstream-pr/1323 into main
Filip722 commented 2026-11-26 15:10:28 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-26T15:10:28Z.


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.

Current head be648a71 targets main d154dcb1 with the shared #1357 source split. GitHub Windows CI passed both Clippy configurations, workspace tests, asset policy and the serial GPU suite. Passing CI

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

<!-- greyfinch-sync:fxceless/victory-fork:issue:5512521891 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1323). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-26T15:10:28Z. --- ## 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. Current head `be648a71` targets main `d154dcb1` with the shared #1357 source split. GitHub Windows CI passed both Clippy configurations, workspace tests, asset policy and the serial GPU suite. [Passing CI](https://github.com/fxceless/victory-fork/actions/runs/45918429413) Assisted by Codex (GPT-6.2-Sol High).
m335671 commented 2026-11-26 16:42:36 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by m335671 on 2026-11-26T16:42:36Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7197996117 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1323#issuecomment-7197996117). Originally posted by [m335671](https://github.com/m335671) on 2026-11-26T16:42:36Z. --- 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.
Filip722 commented 2026-11-26 19:46:59 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-26T19:46:59Z.


Both Windows Clippy steps passed, and the loader regressions passed. The full-suite policy check stopped on the same two oversized source files tracked in #1342. PR #1357 addresses both files and its Windows check passed. This run

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

<!-- greyfinch-sync:fxceless/victory-fork:comment:7201955628 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1323#issuecomment-7201955628). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-26T19:46:59Z. --- Both Windows Clippy steps passed, and the loader regressions passed. The full-suite policy check stopped on the same two oversized source files tracked in #1342. PR #1357 addresses both files and its Windows check passed. [This run](https://github.com/fxceless/victory-fork/actions/runs/45881079353) Assisted by Codex (GPT-6.2-Sol High).
Filip722 commented 2026-11-26 23:32:17 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-26T23:32:17Z.


I retested the 40% option on a build containing main 4c604661 and this render-scale change, using a Series S checkpoint on Bazzite with an RTX 5060 Laptop 8 GB, GE-Proton11-14 and vkd3d-proton 3.2.0. Both replays used the same executable, initial data and cache state, and the same local indexed Wine server. Only the render-scale setting changed. The launcher confirmed the built-in upscaler at both scales.

Internal scale Unique DXGI Presents in 54 s FPS Median / p95 interval Minimum free VRAM
40% 297 5.50 173 / 257 ms 1,768 MiB
50% 316 5.86 165 / 217 ms 1,583 MiB

Both runs reached the same prison view and responded to camera input. The fixed elapsed-time overlap after both matched gave 5.50 and 5.82 FPS, respectively. These are single replays on a newer test stack than my earlier result. The 40% option provided additional VRAM headroom here, and measured throughput currently favors 50%.

All three focused render-scale tests passed on the Windows-target loader binary under Proton. Assisted by Codex (GPT-6.2-Sol High).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7205622951 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1323#issuecomment-7205622951). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-26T23:32:17Z. --- I retested the 40% option on a build containing main `4c604661` and this render-scale change, using a Series S checkpoint on Bazzite with an RTX 5060 Laptop 8 GB, GE-Proton11-14 and vkd3d-proton 3.2.0. Both replays used the same executable, initial data and cache state, and the same local indexed Wine server. Only the render-scale setting changed. The launcher confirmed the built-in upscaler at both scales. | Internal scale | Unique DXGI Presents in 54 s | FPS | Median / p95 interval | Minimum free VRAM | | --- | ---: | ---: | ---: | ---: | | 40% | 297 | 5.50 | 173 / 257 ms | 1,768 MiB | | 50% | 316 | 5.86 | 165 / 217 ms | 1,583 MiB | Both runs reached the same prison view and responded to camera input. The fixed elapsed-time overlap after both matched gave 5.50 and 5.82 FPS, respectively. These are single replays on a newer test stack than my earlier result. The 40% option provided additional VRAM headroom here, and measured throughput currently favors 50%. All three focused render-scale tests passed on the Windows-target loader binary under Proton. Assisted by Codex (GPT-6.2-Sol High).
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/1323:upstream-pr/1323'
git switch 'upstream-pr/1323'

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/1323'
git switch 'upstream-pr/1323'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1323'
git switch 'upstream-pr/1323'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1323'
git switch 'main'
git merge --squash 'upstream-pr/1323'
git switch 'main'
git merge --ff-only 'upstream-pr/1323'
git switch 'main'
git merge 'upstream-pr/1323'
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
fxceless/victory-fork!1320
No description provided.