Skip to content

Loader: add opt-in reduced render scales - #1323

Open
Filip722 wants to merge 11 commits into
fxceless:mainfrom
Filip722:loader/half-render-scale
Open

Filip722 wants to merge 11 commits into
fxceless:mainfrom
Filip722:loader/half-render-scale

Conversation

@Filip722

@Filip722 Filip722 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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).

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

m335671 commented Nov 26, 2026

Copy link
Copy Markdown

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.

claude and others added 2 commits November 26, 2026 18:04
…the asset policy's 512 KiB limit

The check job fails on main: crates/victory-gpu/src/host.rs (528,954 bytes)
and crates/victory-shader/src/emit/lower.rs (535,588 bytes) are over the
asset policy's 512 KiB limit (fxceless#1342).

Only #[cfg(test)] modules move, verbatim apart from losing one level of
indentation; module names and paths are unchanged, no non-test code changes.

- host.rs: its eight test modules (tests, relay_tests, grouped_tests,
  late_tests, trail, spare, batch, queue2_tests) move to host/<name>.rs,
  the layout profile.rs and profile/tests.rs already use. 492,495 bytes.
- lower.rs: mod tests moves to emit/lower_tests.rs, declared with
  #[path = "lower_tests.rs"] as in fxceless#1322. 512,559 bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015kFDn6faAxnJwPKPwiCnj1
Assisted by Codex (GPT-6.2-Sol High).
@Filip722 Filip722 changed the title Loader: add an opt-in half-scale render mode Loader: add opt-in reduced render scales Nov 26, 2026
@Filip722

Copy link
Copy Markdown
Contributor Author

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).

@Filip722

Copy link
Copy Markdown
Contributor Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants