With VICTORY_FSR_4K set, VICTORY_OUTPUT, VICTORY_RENDER_SCALE, VICTORY_FFX_SCALE and VICTORY_UPSCALER are dropped without a word #516

Open
opened 2026-11-27 08:10:12 +00:00 by github-bot · 1 comment
Owner

@⁠itsonewi on GitHub · 2026-11-27 08:07 UTC · original

What happens

victory run applies the resolution switches only when FSR 4K is off:

    // The output size and render scale (VICTORY_OUTPUT, VICTORY_RENDER_SCALE,
    // VICTORY_UPSCALER; each off without it).
    #[cfg(windows)]
    if execute && fsr.is_none() {
        let size = image.info().size_of_image as usize;
        // SAFETY: the image stays mapped and nothing of it has run yet.
        unsafe { victory_loader::resolution::apply_asked(image.base(), size) };
    }

apps/victory/src/run.rs:229-236

apply_asked (crates/victory-loader/src/resolution.rs) is the only reader of VICTORY_OUTPUT, VICTORY_RENDER_SCALE, VICTORY_FFX_SCALE and VICTORY_UPSCALER (the module's own opening line, :1-3), and the only thing that says what became of them: a resolution: … at title+…: Done/Differs/Failed(…) line per switch, whether it applied or not (resolution.rs, apply_asked's loop). Skipping the call skips the whole report, so with VICTORY_FSR_4K set to a preset:

  • VICTORY_OUTPUT, VICTORY_RENDER_SCALE, VICTORY_FFX_SCALE and VICTORY_UPSCALER change nothing;
  • nothing is printed or logged about them — not the value, not that it was ignored.

The FSR branch is otherwise talkative (apps/victory/src/run.rs:71-88: the preset, the FidelityFX folder it loaded, the display mode it set), and apply_asked itself is careful to say "not patched, the title's bytes there are not the ones expected (another build?)" when it cannot do what was asked. The one thing it never says is "not attempted".

The README documents the panels apart, not their interaction: VICTORY_OUTPUT=1920x1080 at README.md:70, and -Fsr4K / VICTORY_FSR_4K at README.md:116 ("set VICTORY_FSR_4K to the preset name"), with scripts/play.ps1 inviting both at once (-Fsr4K quality -More @{VICTORY_RENDER_SCALE='0.9'}, scripts/play.ps1:5, :31, :32).

Why it matters

VICTORY_RENDER_SCALE and VICTORY_FFX_SCALE are the switches someone reaches for because they are running an upscaler and want a different internal size — exactly the case where VICTORY_FSR_4K is on. They set it, the run starts at the preset's size, and the log they send with a performance report has no line that would explain it. Two of the four (--output at README.md:70) also claim to change what the title renders, so a report of "I set 1920x1080 and the picture is still 4K" has nothing to point at.

The fix is also where a real feature might be hiding: the FSR path picks the render size itself (fsr_4k::prepare_fsr_4k), so either it should take VICTORY_RENDER_SCALE as its scale, or the switches should refuse loudly while the preset is on.

Suggested fix

One line at the gate, said once, naming the switches that were set:

    } else {
        for name in ["VICTORY_OUTPUT", "VICTORY_RENDER_SCALE", "VICTORY_FFX_SCALE", "VICTORY_UPSCALER"] {
            if std::env::var_os(name).is_some() {
                println!("resolution: {name} not applied: VICTORY_FSR_4K sets the output size and scale itself");
            }
        }
    }

(or the same through tracing::warn!), and a sentence on the two README rows. If the scale is meant to reach the FSR path, pass it to prepare_fsr_4k and say the value it used.

AI use

Found by an AI agent (Freebuff) reading a-publier at 4eb6cfd through the GitHub API, following the "a switch that does not apply says why" pattern the tree already keeps (resolution.rs, frame.rs, and the fixes for #281/#282/#283). Deduplicated against the open and closed issues. Source only: no Windows build and no GPU here, so nothing was compiled or run — every claim above is a file:line you can check as quoted. Filed by the same agent that filed #280–#293, #301, #302, #311, #510, #513 and #514.

**@⁠itsonewi** on GitHub · 2026-11-27 08:07 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/516) ## What happens `victory run` applies the resolution switches only when FSR 4K is off: ```rust // The output size and render scale (VICTORY_OUTPUT, VICTORY_RENDER_SCALE, // VICTORY_UPSCALER; each off without it). #[cfg(windows)] if execute && fsr.is_none() { let size = image.info().size_of_image as usize; // SAFETY: the image stays mapped and nothing of it has run yet. unsafe { victory_loader::resolution::apply_asked(image.base(), size) }; } ``` `apps/victory/src/run.rs:229-236` `apply_asked` (`crates/victory-loader/src/resolution.rs`) is the only reader of `VICTORY_OUTPUT`, `VICTORY_RENDER_SCALE`, `VICTORY_FFX_SCALE` and `VICTORY_UPSCALER` (the module's own opening line, `:1-3`), **and the only thing that says what became of them**: a `resolution: … at title+…: Done/Differs/Failed(…)` line per switch, whether it applied or not (`resolution.rs`, `apply_asked`'s loop). Skipping the call skips the whole report, so with `VICTORY_FSR_4K` set to a preset: * `VICTORY_OUTPUT`, `VICTORY_RENDER_SCALE`, `VICTORY_FFX_SCALE` and `VICTORY_UPSCALER` change nothing; * nothing is printed or logged about them — not the value, not that it was ignored. The FSR branch is otherwise talkative (`apps/victory/src/run.rs:71-88`: the preset, the FidelityFX folder it loaded, the display mode it set), and `apply_asked` itself is careful to say "not patched, the title's bytes there are not the ones expected (another build?)" when it cannot do what was asked. The one thing it never says is "not attempted". The README documents the panels apart, not their interaction: `VICTORY_OUTPUT=1920x1080` at `README.md:70`, and `-Fsr4K` / `VICTORY_FSR_4K` at `README.md:116` ("set `VICTORY_FSR_4K` to the preset name"), with `scripts/play.ps1` inviting both at once (`-Fsr4K quality -More @{VICTORY_RENDER_SCALE='0.9'}`, `scripts/play.ps1:5`, `:31`, `:32`). ## Why it matters `VICTORY_RENDER_SCALE` and `VICTORY_FFX_SCALE` are the switches someone reaches for *because* they are running an upscaler and want a different internal size — exactly the case where `VICTORY_FSR_4K` is on. They set it, the run starts at the preset's size, and the log they send with a performance report has no line that would explain it. Two of the four (`--output` at `README.md:70`) also claim to change what the title renders, so a report of "I set 1920x1080 and the picture is still 4K" has nothing to point at. The fix is also where a real feature might be hiding: the FSR path picks the render size itself (`fsr_4k::prepare_fsr_4k`), so either it should take `VICTORY_RENDER_SCALE` as its scale, or the switches should refuse loudly while the preset is on. ## Suggested fix One line at the gate, said once, naming the switches that were set: ```rust } else { for name in ["VICTORY_OUTPUT", "VICTORY_RENDER_SCALE", "VICTORY_FFX_SCALE", "VICTORY_UPSCALER"] { if std::env::var_os(name).is_some() { println!("resolution: {name} not applied: VICTORY_FSR_4K sets the output size and scale itself"); } } } ``` (or the same through `tracing::warn!`), and a sentence on the two README rows. If the scale is meant to reach the FSR path, pass it to `prepare_fsr_4k` and say the value it used. ## AI use Found by an AI agent (Freebuff) reading `a-publier` at `4eb6cfd` through the GitHub API, following the "a switch that does not apply says why" pattern the tree already keeps (`resolution.rs`, `frame.rs`, and the fixes for #281/#282/#283). Deduplicated against the open and closed issues. Source only: no Windows build and no GPU here, so nothing was compiled or run — every claim above is a `file:line` you can check as quoted. Filed by the same agent that filed #280–#293, #301, #302, #311, #510, #513 and #514.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 08:10:12 +00:00
Author
Owner

@⁠JohannFaust666 on GitHub · 2026-11-27 08:28 UTC · original

I’ve opened #520 to warn when an FSR 4K preset overrides manually configured settings.

**@⁠JohannFaust666** on GitHub · 2026-11-27 08:28 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/516#issuecomment-7213578161) I’ve opened #520 to warn when an FSR 4K preset overrides manually configured settings.
This discussion has been locked. Commenting is limited to contributors.
No description provided.