docs: explain Series S render profile and memory limits #354

Closed
ToxicmaggotRP wants to merge 1 commit from upstream-pr/354 into main
ToxicmaggotRP commented 2026-11-24 02:33:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ToxicmaggotRP on 2026-11-24T02:33:24Z.


Title: docs: explain Series S render profile and memory limits

Summary

Clarifies how to select VIctory's existing Series S console profile and what it does (and does not) solve for GTA VI's high memory use.

  • Documents the --console series-s command.
  • Explains why changing the DXGI-advertised display mode alone does not lower the game's scene resolution.
  • Distinguishes the 1080p Series S scene and 720p internal targets from the separate 4K UI presentation plane.
  • Records the memory figures reported in issue #203, including test setup and limitations.

This is a documentation clarification related to #203. It does not claim to fix the underlying memory pressure or NVIDIA device hang.

Verification

  • Reviewed the README diff: one file, 29 additions, no deletions.
  • Confirmed the branch is one commit ahead of main, with no divergence from upstream.
  • Documentation-only change; Cargo tests were not run.
  • Runtime measurements come from the report in #203 and have not been independently reproduced for this PR.

AI-assisted documentation: ChatGPT drafted the text. Technical findings and measurements are attributed to the linked project discussion.

AI ASSISTED (CHATGPT)

<!-- greyfinch-sync:Marvisak/VIctory:issue:6573312154 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/354). Originally posted by [ToxicmaggotRP](https://github.com/ToxicmaggotRP) on 2026-11-24T02:33:24Z. --- **Title:** docs: explain Series S render profile and memory limits ## Summary Clarifies how to select VIctory's existing Series S console profile and what it does (and does not) solve for GTA VI's high memory use. - Documents the `--console series-s` command. - Explains why changing the DXGI-advertised display mode alone does not lower the game's scene resolution. - Distinguishes the 1080p Series S scene and 720p internal targets from the separate 4K UI presentation plane. - Records the memory figures reported in issue #203, including test setup and limitations. This is a documentation clarification related to #203. It does not claim to fix the underlying memory pressure or NVIDIA device hang. ## Verification - Reviewed the README diff: one file, 29 additions, no deletions. - Confirmed the branch is one commit ahead of `main`, with no divergence from upstream. - Documentation-only change; Cargo tests were not run. - Runtime measurements come from the report in #203 and have not been independently reproduced for this PR. AI-assisted documentation: ChatGPT drafted the text. Technical findings and measurements are attributed to the linked project discussion. AI ASSISTED (CHATGPT)
jeremygold02 commented 2026-11-24 06:55:44 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T04:25:45Z.


Tested PR #354 at head 9f28f6b9845b06b68c7981fcbed93f9f62ba8993 (state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at 9f28f6b9845b06b68c7981fcbed93f9f62ba8993.

  • git diff --check d2a4bae1f49533ef5cb512fd1b1ba1513f2e1989 HEAD — passed (no whitespace errors).

Behavior covered: README-only profile and memory guidance; whitespace validation is applicable, with no behavior tests.
Code: README.md

<!-- greyfinch-sync:Marvisak/VIctory:comment:7122010095 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/354#issuecomment-7122010095). Originally posted by [jeremygold02](https://github.com/jeremygold02) on 2026-11-24T04:25:45Z. --- Tested PR #354 at head `9f28f6b9845b06b68c7981fcbed93f9f62ba8993` (state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at `9f28f6b9845b06b68c7981fcbed93f9f62ba8993`. - `git diff --check d2a4bae1f49533ef5cb512fd1b1ba1513f2e1989 HEAD` — passed (no whitespace errors). Behavior covered: README-only profile and memory guidance; whitespace validation is applicable, with no behavior tests. Code: [README.md](https://github.com/Marvisak/VIctory/blob/9f28f6b9845b06b68c7981fcbed93f9f62ba8993/README.md)
pfhandler commented 2026-11-24 21:03:42 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pfhandler on 2026-11-24T20:50:36Z.


Local patches for two issues hit while running GTA VI 1.0.2.1 through VIctory on Linux (GE-Proton 11-14, vkd3d-proton 3.2.0, RTX 4060 Ti 8 GB):

  • VICTORY_NO_HOST_PAD=1 — a connected host pad (e.g. DualShock appearing as XInput pad 0) keeps the keyboard stand-in pad from being enumerated. Hiding the host pad lets VICTORY_KEYS drive the title again.
  • VICTORY_MODE=1920x1080 — the DXGI output mode list is fixed at the console's 3840x2160. Reporting 1920x1080 instead keeps the title's render targets and VRAM use down on smaller hosts (Series S profile + 1080p settled around 3.5 GB VRAM here).

Both are local uncommitted diffs, posted here for reuse. Tested only on the configuration above.

diff --git a/crates/victory-gpu/src/dxgi.rs b/crates/victory-gpu/src/dxgi.rs
index c7f7c45..2535b68 100644
--- a/crates/victory-gpu/src/dxgi.rs
+++ b/crates/victory-gpu/src/dxgi.rs
@@ -219,6 +219,19 @@ struct Mode {
 }
 const _: () = assert!(size_of::<Mode>() == 32);
 
+/// The console's fixed output mode, overridable for hosts smaller than the
+/// console's 4K target: `VICTORY_MODE=1920x1080` reports that instead.
+fn mode_size() -> (u32, u32) {
+    const DEFAULT: (u32, u32) = (3840, 2160);
+    let Some(text) = std::env::var_os("VICTORY_MODE") else {
+        return DEFAULT;
+    };
+    let text = text.to_string_lossy();
+    text.split_once('x')
+        .and_then(|(w, h)| Some((w.trim().parse().ok()?, h.trim().parse().ok()?)))
+        .unwrap_or(DEFAULT)
+}
+
 /// The console's mode list: one 4K mode at 60 Hz (Grand Theft Auto VI looks
 /// for a 120 Hz one to allow 120 Hz frame intervals).
 /// shortcut: fixed mode, not the host display's; report the host's rates if
@@ -242,9 +255,10 @@ extern "system" fn modes(
         return MORE_DATA;
     }
     *count = 1;
+    let (width, height) = mode_size();
     let mode = Mode {
-        width: 3840,
-        height: 2160,
+        width,
+        height,
         refresh: [60, 1],
         format: 0,
         scanlines: 1, // progressive
diff --git a/crates/victory-hle/src/modules/gameinput.rs b/crates/victory-hle/src/modules/gameinput.rs
index a411bd0..da8d66c 100644
--- a/crates/victory-hle/src/modules/gameinput.rs
+++ b/crates/victory-hle/src/modules/gameinput.rs
@@ -1134,6 +1134,11 @@ mod host {
 
     impl Source for Host {
         fn pad(&mut self, slot: usize) -> Option<PadState> {
+            // The keyboard stand-in pad only exists while no host pad is
+            // connected; this hides a host pad the title mis-handles.
+            if std::env::var_os("VICTORY_NO_HOST_PAD").is_some() {
+                return None;
+            }
             if self.empty_until[slot].is_some_and(|until| Instant::now() < until) {
                 return None;
             }
<!-- greyfinch-sync:Marvisak/VIctory:comment:7144130156 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/354#issuecomment-7144130156). Originally posted by [pfhandler](https://github.com/pfhandler) on 2026-11-24T20:50:36Z. --- Local patches for two issues hit while running GTA VI 1.0.2.1 through VIctory on Linux (GE-Proton 11-14, vkd3d-proton 3.2.0, RTX 4060 Ti 8 GB): - `VICTORY_NO_HOST_PAD=1` — a connected host pad (e.g. DualShock appearing as XInput pad 0) keeps the keyboard stand-in pad from being enumerated. Hiding the host pad lets `VICTORY_KEYS` drive the title again. - `VICTORY_MODE=1920x1080` — the DXGI output mode list is fixed at the console's 3840x2160. Reporting 1920x1080 instead keeps the title's render targets and VRAM use down on smaller hosts (Series S profile + 1080p settled around 3.5 GB VRAM here). Both are local uncommitted diffs, posted here for reuse. Tested only on the configuration above. ```diff diff --git a/crates/victory-gpu/src/dxgi.rs b/crates/victory-gpu/src/dxgi.rs index c7f7c45..2535b68 100644 --- a/crates/victory-gpu/src/dxgi.rs +++ b/crates/victory-gpu/src/dxgi.rs @@ -219,6 +219,19 @@ struct Mode { } const _: () = assert!(size_of::<Mode>() == 32); +/// The console's fixed output mode, overridable for hosts smaller than the +/// console's 4K target: `VICTORY_MODE=1920x1080` reports that instead. +fn mode_size() -> (u32, u32) { + const DEFAULT: (u32, u32) = (3840, 2160); + let Some(text) = std::env::var_os("VICTORY_MODE") else { + return DEFAULT; + }; + let text = text.to_string_lossy(); + text.split_once('x') + .and_then(|(w, h)| Some((w.trim().parse().ok()?, h.trim().parse().ok()?))) + .unwrap_or(DEFAULT) +} + /// The console's mode list: one 4K mode at 60 Hz (Grand Theft Auto VI looks /// for a 120 Hz one to allow 120 Hz frame intervals). /// shortcut: fixed mode, not the host display's; report the host's rates if @@ -242,9 +255,10 @@ extern "system" fn modes( return MORE_DATA; } *count = 1; + let (width, height) = mode_size(); let mode = Mode { - width: 3840, - height: 2160, + width, + height, refresh: [60, 1], format: 0, scanlines: 1, // progressive diff --git a/crates/victory-hle/src/modules/gameinput.rs b/crates/victory-hle/src/modules/gameinput.rs index a411bd0..da8d66c 100644 --- a/crates/victory-hle/src/modules/gameinput.rs +++ b/crates/victory-hle/src/modules/gameinput.rs @@ -1134,6 +1134,11 @@ mod host { impl Source for Host { fn pad(&mut self, slot: usize) -> Option<PadState> { + // The keyboard stand-in pad only exists while no host pad is + // connected; this hides a host pad the title mis-handles. + if std::env::var_os("VICTORY_NO_HOST_PAD").is_some() { + return None; + } if self.empty_until[slot].is_some_and(|until| Instant::now() < until) { return None; } ```
upstream-sync closed this pull request 2026-11-25 00:05:24 +00:00
Marvisak commented 2026-11-25 00:06:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:02:22Z.


Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current).

A 29-line README section on the Series S profile built on one tester's measurements from an old commit with two unmerged PRs applied; not something the README can state, and repo docs stay short.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148069101 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/354#issuecomment-7148069101). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:02:22Z. --- Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current). A 29-line README section on the Series S profile built on one tester's measurements from an old commit with two unmerged PRs applied; not something the README can state, and repo docs stay short. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

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
Marvisak/VIctory!354
No description provided.