Add PC upscaling and Series S frame generation #156

Merged
TaynanGT merged 2 commits from upstream-pr/156 into main 2026-11-27 04:44:05 +00:00
TaynanGT commented 2026-11-27 04:33:43 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T04:33:43Z.


The checkout used by my launcher already has PC upscaling and Series S frame generation. This brings that source onto main so the local build and the GitHub checkout can use the same revision.

  • Add the PC FSR and DLSS profiles, including the Series S settings used for the frame generation runs.
  • Wire AMD's frame generation provider into the host swap chain and show rendered FPS and swap-chain presentations separately in the diagnostics panel.
  • Document the SDK setup and update the FSR fallback test for the current loader signature.

The local diagnostics graphics suite passed all 492 enabled tests. The source includes beloooo’s FSR port of DexNom’s bridge and follows PastiiJay’s DirectX 12 frame generation integration.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5521240529 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/156). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T04:33:43Z. --- The checkout used by my launcher already has PC upscaling and Series S frame generation. This brings that source onto main so the local build and the GitHub checkout can use the same revision. - Add the PC FSR and DLSS profiles, including the Series S settings used for the frame generation runs. - Wire AMD's frame generation provider into the host swap chain and show rendered FPS and swap-chain presentations separately in the diagnostics panel. - Document the SDK setup and update the FSR fallback test for the current loader signature. The local diagnostics graphics suite passed all 492 enabled tests. The source includes beloooo’s FSR port of [DexNom’s bridge](https://github.com/DexNom/VIctory/commit/ab34a8b21477c94da2a6cf07249138e8bc84602e) and follows [PastiiJay’s DirectX 12 frame generation integration](https://github.com/PastiiJay/klbf-lab/commit/793c56c36fda760b027122418b922fc359abf580).
chatgpt-codex-connector[bot] commented 2026-11-27 04:33:53 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T04:33:53Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T04:41:49.093225Z 190e10e New commits
🔒 Security Review ✅ Completed 2026-11-27T04:41:59.638819Z 190e10e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7209900900 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/156#issuecomment-7209900900). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-27T04:33:53Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"190e10e0d8f0a4075c5bbd696b4f7def8482313f","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":"190e10e0d8f0a4075c5bbd696b4f7def8482313f","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"190e10e0d8f0a4075c5bbd696b4f7def8482313f","mergeGateEnabled":false,"pullRequestNumber":156,"repository":"TaynanGT/Vice-Tay","status":"completed"} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-27T04:41:49.093225Z">2026-11-27T04:41:49.093225Z</relative-time> | `190e10e` | New commits | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T04:41:59.638819Z">2026-11-27T04:41:59.638819Z</relative-time> | `190e10e` | New commits | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
chatgpt-codex-connector[bot] commented 2026-11-27 04:36:56 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T04:36:56Z.

Code review location: apps/victory/src/run.rs; line 148

@@ -63,7 +132,58 @@ pub fn run(
 
     let images = cfg.cache_subdir("images")?;
     victory_hle::modules::d3d12x::use_shader_cache(cfg.cache_subdir("shaders")?);
-    let image = victory_loader::load(&prepared, &images)?;
+    // A 4K profile renders smaller and has a host upscaler (DLSS first
+    // when asked, else FSR) fill the 3840x2160 output; without a host
+    // upscaler the stock profile runs.
+    let mut profile = None;
+    if let Some(preset) = series_s_dlss {
+        anyhow::ensure!(
+            matches!(console, Console::SeriesS) && fsr.is_none() && dlss.is_none(),
+            "VICTORY_DLSS requires Series S mode without a 4K profile"
+        );
+        // Replace the upscaler with the original Series S render and output sizes.
+        let logs = cfg.cache_subdir("ngx")?;
+        victory_hle::modules::fidelityfx::use_dlss(cfg.dlss_dir.as_deref(), &logs, preset.dlss_quality())
+            .map_err(anyhow::Error::msg)
+            .context("initializing DLSS for Series S")?;

P2 Badge Prevent the laptop profile from bypassing Series S DLSS

When launching with -Machine laptop -Console series-s -More @{VICTORY_DLSS='quality'}, scripts/play.ps1:103 also sets VICTORY_UPSCALER=6. This branch initializes DLSS but leaves profile unset, so the later resolution::apply_asked patches the title to use its own upscaler rather than FidelityFX. Consequently, no calls reach the DLSS bridge despite the log reporting that DLSS was selected; enabling frame generation also produces no preparation calls. Force the FidelityFX picker for this selection, or reject the conflicting setting instead of silently bypassing the requested provider.

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:review-comment:4715720287 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/156#discussion_r4715720287). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-27T04:36:56Z. **Code review location:** `apps/victory/src/run.rs`; line 148 ~~~~diff @@ -63,7 +132,58 @@ pub fn run( let images = cfg.cache_subdir("images")?; victory_hle::modules::d3d12x::use_shader_cache(cfg.cache_subdir("shaders")?); - let image = victory_loader::load(&prepared, &images)?; + // A 4K profile renders smaller and has a host upscaler (DLSS first + // when asked, else FSR) fill the 3840x2160 output; without a host + // upscaler the stock profile runs. + let mut profile = None; + if let Some(preset) = series_s_dlss { + anyhow::ensure!( + matches!(console, Console::SeriesS) && fsr.is_none() && dlss.is_none(), + "VICTORY_DLSS requires Series S mode without a 4K profile" + ); + // Replace the upscaler with the original Series S render and output sizes. + let logs = cfg.cache_subdir("ngx")?; + victory_hle::modules::fidelityfx::use_dlss(cfg.dlss_dir.as_deref(), &logs, preset.dlss_quality()) + .map_err(anyhow::Error::msg) + .context("initializing DLSS for Series S")?; ~~~~ --- **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Prevent the laptop profile from bypassing Series S DLSS** When launching with `-Machine laptop -Console series-s -More @{VICTORY_DLSS='quality'}`, `scripts/play.ps1:103` also sets `VICTORY_UPSCALER=6`. This branch initializes DLSS but leaves `profile` unset, so the later `resolution::apply_asked` patches the title to use its own upscaler rather than FidelityFX. Consequently, no calls reach the DLSS bridge despite the log reporting that DLSS was selected; enabling frame generation also produces no preparation calls. Force the FidelityFX picker for this selection, or reject the conflicting setting instead of silently bypassing the requested provider. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
chatgpt-codex-connector[bot] commented 2026-11-27 04:36:56 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T04:36:56Z.

Review: COMMENTED


💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3236af669c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<!-- greyfinch-sync:TaynanGT/Vice-Tay:review:6083541043 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/156#pullrequestreview-6083541043). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-27T04:36:56Z. **Review:** COMMENTED --- <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `3236af669c` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". </details>
TaynanGT commented 2026-11-29 19:11:37 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:11:37Z.

Code review location: apps/victory/src/run.rs; line 148

@@ -63,7 +132,58 @@ pub fn run(
 
     let images = cfg.cache_subdir("images")?;
     victory_hle::modules::d3d12x::use_shader_cache(cfg.cache_subdir("shaders")?);
-    let image = victory_loader::load(&prepared, &images)?;
+    // A 4K profile renders smaller and has a host upscaler (DLSS first
+    // when asked, else FSR) fill the 3840x2160 output; without a host
+    // upscaler the stock profile runs.
+    let mut profile = None;
+    if let Some(preset) = series_s_dlss {
+        anyhow::ensure!(
+            matches!(console, Console::SeriesS) && fsr.is_none() && dlss.is_none(),
+            "VICTORY_DLSS requires Series S mode without a 4K profile"
+        );
+        // Replace the upscaler with the original Series S render and output sizes.
+        let logs = cfg.cache_subdir("ngx")?;
+        victory_hle::modules::fidelityfx::use_dlss(cfg.dlss_dir.as_deref(), &logs, preset.dlss_quality())
+            .map_err(anyhow::Error::msg)
+            .context("initializing DLSS for Series S")?;

The current Series S provider path explicitly rejects conflicting VICTORY_UPSCALER, VICTORY_RENDER_SCALE and VICTORY_FFX_SCALE settings, and applies the preset's Series S patches before selecting the provider. This avoids silently accepting the old conflict; the actual DLSS bridge and frame generation still need in-game validation.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:review-comment:4732761090 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/156#discussion_r4732761090). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-29T19:11:37Z. **Code review location:** `apps/victory/src/run.rs`; line 148 ~~~~diff @@ -63,7 +132,58 @@ pub fn run( let images = cfg.cache_subdir("images")?; victory_hle::modules::d3d12x::use_shader_cache(cfg.cache_subdir("shaders")?); - let image = victory_loader::load(&prepared, &images)?; + // A 4K profile renders smaller and has a host upscaler (DLSS first + // when asked, else FSR) fill the 3840x2160 output; without a host + // upscaler the stock profile runs. + let mut profile = None; + if let Some(preset) = series_s_dlss { + anyhow::ensure!( + matches!(console, Console::SeriesS) && fsr.is_none() && dlss.is_none(), + "VICTORY_DLSS requires Series S mode without a 4K profile" + ); + // Replace the upscaler with the original Series S render and output sizes. + let logs = cfg.cache_subdir("ngx")?; + victory_hle::modules::fidelityfx::use_dlss(cfg.dlss_dir.as_deref(), &logs, preset.dlss_quality()) + .map_err(anyhow::Error::msg) + .context("initializing DLSS for Series S")?; ~~~~ --- The current Series S provider path explicitly rejects conflicting VICTORY_UPSCALER, VICTORY_RENDER_SCALE and VICTORY_FFX_SCALE settings, and applies the preset's Series S patches before selecting the provider. This avoids silently accepting the old conflict; the actual DLSS bridge and frame generation still need in-game validation.
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
TaynanGT/Vice-Tay!156
No description provided.