FSR 4.1 fallback to FSR 3.1 and framegen enable for RDNA2 (and maybe 3?) cards (with a possible approach) #160

Closed
opened 2026-12-02 05:06:54 +00:00 by github-bot · 11 comments
Owner

@⁠EzequielGhR on GitHub · 2026-12-02 05:06 UTC · original

Hello I am creating an issue because I don't have an llm subscription to walk me through all of this repo and I dont want to make a change that will go out of date super quick, so I am hoping someone can take my idea and properly implement it on the repo. If not I will try to create a PR over the following weekend.

Basically the logic gated behind FSR 4.1 upscaling can be applied to FSR 3.1 for RDNA2 cards (like my 6800 XT), and thus also allowing Framegen to be enabled. Right now its working for me with the following patch over the current main (6dbc3e7):

diff --git a/apps/victory/src/run.rs b/apps/victory/src/run.rs
index 3fcb893..0f02018 100644
--- a/apps/victory/src/run.rs
+++ b/apps/victory/src/run.rs
@@ -156,6 +156,7 @@ pub fn run(
         }
         victory_loader::load(&prepared, &images)?
     };
+    
     // The program is mapped from the copy `load` wrote: the file's bytes
     // and their patched copy are not read again, and were held for the
     // whole run (two blocks of 114.7 MB each for the title, in
diff --git a/crates/victory-gpu/src/external.rs b/crates/victory-gpu/src/external.rs
index 35793f2..7f905a7 100644
--- a/crates/victory-gpu/src/external.rs
+++ b/crates/victory-gpu/src/external.rs
@@ -3,12 +3,16 @@
 //! device, a title texture's host copy in the state the library is told,
 //! and the host list itself.
 
+use std::sync::OnceLock;
+
 use windows::Win32::Graphics::Direct3D12::{
     ID3D12Device, ID3D12GraphicsCommandList, ID3D12Resource,
 };
 
 use crate::object::This;
 
+static UPSCALER_VERSION: OnceLock<String> = OnceLock::new();
+
 /// The host D3D12 device, created on first use; `None` without a host GPU.
 pub fn host_device() -> Option<ID3D12Device> {
     crate::host::host().map(|h| h.device.clone())
@@ -115,3 +119,16 @@ pub struct FrameInputs {
 pub fn use_frame_generation(dir: &std::path::Path) -> Result<String, String> {
     crate::framegen::load(dir)
 }
+
+/// Records the active FidelityFX upscaler version string (e.g. `"4.1.2"` or `"3.1.6"`).
+pub fn set_upscaler_version(version: String) {
+    let _ = UPSCALER_VERSION.set(version);
+}
+
+/// Returns `"FSR 3"` if a 3.x host upscaler was selected, otherwise `"FSR 4"`.
+pub(crate) fn upscaler_label() -> (&'static str, &'static str) {
+    match UPSCALER_VERSION.get() {
+        Some(v) if v.starts_with("3.") => ("FSR 3", "FSR3"),
+        _ => ("FSR 4", "FSR4"),
+    }
+}
diff --git a/crates/victory-gpu/src/host/panel.rs b/crates/victory-gpu/src/host/panel.rs
index 246ca79..fd65376 100644
--- a/crates/victory-gpu/src/host/panel.rs
+++ b/crates/victory-gpu/src/host/panel.rs
@@ -715,11 +715,18 @@ fn upscaler() -> &'static Upscaler {
     static IT: OnceLock<Upscaler> = OnceLock::new();
     IT.get_or_init(|| {
         let var = |k: &str| std::env::var(k).ok().map(|v| v.trim().to_ascii_lowercase());
-        let fsr = |scale, name, short| Upscaler { scale, name, short };
+        
+        let (label, short_label) = crate::external::upscaler_label();
+        let fsr = |scale, tier, short_tier| Upscaler {
+            scale,
+            name: Box::leak(format!("{label} {tier}").into_boxed_str()),
+            short: Box::leak(format!("{short_label} {short_tier}").into_boxed_str())
+        };
+
         match var("VICTORY_FSR_4K").as_deref() {
-            Some("quality") => fsr(2.0 / 3.0, "FSR 4 Quality", "FSR4 Q"),
-            Some("balanced") => fsr(1.0 / 1.7, "FSR 4 Balanced", "FSR4 B"),
-            Some("performance") => fsr(0.5, "FSR 4 Performance", "FSR4 P"),
+            Some("quality") => fsr(2.0 / 3.0, "Quality", "Q"),
+            Some("balanced") => fsr(1.0 / 1.7, "Balanced", "B"),
+            Some("performance") => fsr(0.5, "Performance", "P"),
             _ => {
                 let host = var("VICTORY_FSR_HOST").as_deref() == Some("1");
                 Upscaler {
@@ -727,8 +734,8 @@ fn upscaler() -> &'static Upscaler {
                         .and_then(|v| v.parse::<f32>().ok())
                         .filter(|s| (0.5..=1.0).contains(s))
                         .unwrap_or(2.0 / 3.0),
-                    name: if host { "FSR 4" } else { "Built in" },
-                    short: if host { "FSR4" } else { "Built in" },
+                    name: if host { label } else { "Built in" },
+                    short: if host { short_label } else { "Built in" },
                 }
             }
         }
diff --git a/crates/victory-hle/src/modules/fidelityfx.rs b/crates/victory-hle/src/modules/fidelityfx.rs
index 68f70fc..47d9038 100644
--- a/crates/victory-hle/src/modules/fidelityfx.rs
+++ b/crates/victory-hle/src/modules/fidelityfx.rs
@@ -238,6 +238,7 @@ pub fn use_host_dir(dir: &Path) -> Result<(), String> {
     let (host, version) = load(dir)?;
     HOST.set(host)
         .map_err(|_| String::from("FidelityFX provider already initialized"))?;
+    victory_gpu::external::set_upscaler_version(version.clone());
     tracing::info!(folder = %dir.display(), version, "FidelityFX: selected PC upscaler");
     Ok(())
 }
@@ -339,6 +340,7 @@ fn select_version(query_fn: Call, device: &ID3D12Device) -> Result<(u64, String)
         ));
     }
     let mut available = Vec::new();
+    let mut fallback_3_1 = None;
     for (id, name) in ids.into_iter().zip(names).take(count as usize) {
         if !name.is_null() {
             // SAFETY: NUL-terminated name owned by the SDK.
@@ -348,9 +350,15 @@ fn select_version(query_fn: Call, device: &ID3D12Device) -> Result<(u64, String)
             if is_fsr_4_1(&name) {
                 return Ok((id, name));
             }
+            if name.starts_with("3.1.") {
+                fallback_3_1 = Some((id, name.clone()));
+            }
             available.push(name);
         }
     }
+    if let Some(provider) = fallback_3_1 {
+        return Ok(provider);
+    }
     Err(format!(
         "no FSR 4.1 provider for this adapter (available: {})",
         available.join(", ")
@@ -393,7 +401,7 @@ fn host_state(state: u32) -> Option<u32> {
 extern "C" fn ffxCreateContext(
     context: *mut *mut c_void,
     desc: *mut Header,
-    memory: *const c_void,
+    _memory: *const c_void,
 ) -> u32 {
     let Some(host) = HOST.get() else {
         return NO_PROVIDER;
@@ -430,7 +438,7 @@ extern "C" fn ffxCreateContext(
     });
     backend.header.next = &raw mut requested.header;
     // SAFETY: a PC chain; the title's later descriptions live for the call.
-    let code = unsafe { (host.create)(context, &mut upscale.header, memory) };
+    let code = unsafe { (host.create)(context, &mut upscale.header, null()) };
     if code != OK {
         tracing::error!(code, render = ?upscale.max_render, output = ?upscale.max_output, flags = format_args!("{:#x}", upscale.flags), "FidelityFX: the host refused the title's upscaler");
         return code;
@@ -450,7 +458,9 @@ extern "C" fn ffxCreateContext(
         .then(|| unsafe { CStr::from_ptr(version.name) }.to_string_lossy());
     if query_code != OK
         || version.id != host.provider_id
-        || !name.as_deref().is_some_and(is_fsr_4_1)
+        || !name
+            .as_deref()
+            .is_some_and(|n| is_fsr_4_1(n) || n.starts_with("3.1."))
     {
         tracing::warn!(
             query_code,
@@ -458,7 +468,7 @@ extern "C" fn ffxCreateContext(
             "FidelityFX created a different provider than the requested 4.1"
         );
         // SAFETY: the PC provider just created the context with this allocator.
-        unsafe { (host.destroy)(context, memory) };
+        unsafe { (host.destroy)(context, null()) };
         return NO_PROVIDER;
     }
     // SAFETY: a successful SDK creation wrote an opaque context into this slot.
@@ -485,7 +495,7 @@ extern "C" fn ffxCreateContext(
     OK
 }
 
-extern "C" fn ffxDestroyContext(context: *mut *mut c_void, memory: *const c_void) -> u32 {
+extern "C" fn ffxDestroyContext(context: *mut *mut c_void, _memory: *const c_void) -> u32 {
     let Some(host) = HOST.get() else {
         return NO_PROVIDER;
     };
@@ -507,7 +517,7 @@ extern "C" fn ffxDestroyContext(context: *mut *mut c_void, memory: *const c_void
     // The guest releases a context after submitting its frames. The host
     // may still be executing their lists, even after guest Execute returns.
     victory_gpu::external::finish_submitted();
-    let code = unsafe { (host.destroy)(context, memory) };
+    let code = unsafe { (host.destroy)(context, null()) };
     if code == OK {
         *live = false;
         let mut contexts = CONTEXTS.lock().unwrap_or_else(|e| e.into_inner());

The patch also reflects on the F3 panel even tho the UI is a bit glitchy for me cause I am running 15 fps -> 30 with this patch.

I am currently using:

VICTORY_MENU=1
VICTORY_LOG=warn
VICTORY_BVH_BUILDER=0
VICTORY_PAGES=0
VICTORY_CARD_PULL=0
KEEP_FREE=4096
VICTORY_LOD_SCALE=0.25
VICTORY_SMALL_CULL=4.0
VICTORY_VEHICLE_LOD_BIAS=0.5
VICTORY_FULLSCREEN=1
VICTORY_SKIP_BINK=1
VICTORY_OUTPUT=1920x1080
VICTORY_UI_PLANE=1920x1080
VICTORY_FSR_4K=performance
VICTORY_FIDELITYFX_FRAMEGEN=1
VICTORY_PLACED_COPIED=1
**@⁠EzequielGhR** on GitHub · 2026-12-02 05:06 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/160) Hello I am creating an issue because I don't have an llm subscription to walk me through all of this repo and I dont want to make a change that will go out of date super quick, so I am hoping someone can take my idea and properly implement it on the repo. If not I will try to create a PR over the following weekend. Basically the logic gated behind FSR 4.1 upscaling can be applied to FSR 3.1 for RDNA2 cards (like my 6800 XT), and thus also allowing Framegen to be enabled. Right now its working for me with the following patch over the current main (6dbc3e7): ``` diff --git a/apps/victory/src/run.rs b/apps/victory/src/run.rs index 3fcb893..0f02018 100644 --- a/apps/victory/src/run.rs +++ b/apps/victory/src/run.rs @@ -156,6 +156,7 @@ pub fn run( } victory_loader::load(&prepared, &images)? }; + // The program is mapped from the copy `load` wrote: the file's bytes // and their patched copy are not read again, and were held for the // whole run (two blocks of 114.7 MB each for the title, in diff --git a/crates/victory-gpu/src/external.rs b/crates/victory-gpu/src/external.rs index 35793f2..7f905a7 100644 --- a/crates/victory-gpu/src/external.rs +++ b/crates/victory-gpu/src/external.rs @@ -3,12 +3,16 @@ //! device, a title texture's host copy in the state the library is told, //! and the host list itself. +use std::sync::OnceLock; + use windows::Win32::Graphics::Direct3D12::{ ID3D12Device, ID3D12GraphicsCommandList, ID3D12Resource, }; use crate::object::This; +static UPSCALER_VERSION: OnceLock<String> = OnceLock::new(); + /// The host D3D12 device, created on first use; `None` without a host GPU. pub fn host_device() -> Option<ID3D12Device> { crate::host::host().map(|h| h.device.clone()) @@ -115,3 +119,16 @@ pub struct FrameInputs { pub fn use_frame_generation(dir: &std::path::Path) -> Result<String, String> { crate::framegen::load(dir) } + +/// Records the active FidelityFX upscaler version string (e.g. `"4.1.2"` or `"3.1.6"`). +pub fn set_upscaler_version(version: String) { + let _ = UPSCALER_VERSION.set(version); +} + +/// Returns `"FSR 3"` if a 3.x host upscaler was selected, otherwise `"FSR 4"`. +pub(crate) fn upscaler_label() -> (&'static str, &'static str) { + match UPSCALER_VERSION.get() { + Some(v) if v.starts_with("3.") => ("FSR 3", "FSR3"), + _ => ("FSR 4", "FSR4"), + } +} diff --git a/crates/victory-gpu/src/host/panel.rs b/crates/victory-gpu/src/host/panel.rs index 246ca79..fd65376 100644 --- a/crates/victory-gpu/src/host/panel.rs +++ b/crates/victory-gpu/src/host/panel.rs @@ -715,11 +715,18 @@ fn upscaler() -> &'static Upscaler { static IT: OnceLock<Upscaler> = OnceLock::new(); IT.get_or_init(|| { let var = |k: &str| std::env::var(k).ok().map(|v| v.trim().to_ascii_lowercase()); - let fsr = |scale, name, short| Upscaler { scale, name, short }; + + let (label, short_label) = crate::external::upscaler_label(); + let fsr = |scale, tier, short_tier| Upscaler { + scale, + name: Box::leak(format!("{label} {tier}").into_boxed_str()), + short: Box::leak(format!("{short_label} {short_tier}").into_boxed_str()) + }; + match var("VICTORY_FSR_4K").as_deref() { - Some("quality") => fsr(2.0 / 3.0, "FSR 4 Quality", "FSR4 Q"), - Some("balanced") => fsr(1.0 / 1.7, "FSR 4 Balanced", "FSR4 B"), - Some("performance") => fsr(0.5, "FSR 4 Performance", "FSR4 P"), + Some("quality") => fsr(2.0 / 3.0, "Quality", "Q"), + Some("balanced") => fsr(1.0 / 1.7, "Balanced", "B"), + Some("performance") => fsr(0.5, "Performance", "P"), _ => { let host = var("VICTORY_FSR_HOST").as_deref() == Some("1"); Upscaler { @@ -727,8 +734,8 @@ fn upscaler() -> &'static Upscaler { .and_then(|v| v.parse::<f32>().ok()) .filter(|s| (0.5..=1.0).contains(s)) .unwrap_or(2.0 / 3.0), - name: if host { "FSR 4" } else { "Built in" }, - short: if host { "FSR4" } else { "Built in" }, + name: if host { label } else { "Built in" }, + short: if host { short_label } else { "Built in" }, } } } diff --git a/crates/victory-hle/src/modules/fidelityfx.rs b/crates/victory-hle/src/modules/fidelityfx.rs index 68f70fc..47d9038 100644 --- a/crates/victory-hle/src/modules/fidelityfx.rs +++ b/crates/victory-hle/src/modules/fidelityfx.rs @@ -238,6 +238,7 @@ pub fn use_host_dir(dir: &Path) -> Result<(), String> { let (host, version) = load(dir)?; HOST.set(host) .map_err(|_| String::from("FidelityFX provider already initialized"))?; + victory_gpu::external::set_upscaler_version(version.clone()); tracing::info!(folder = %dir.display(), version, "FidelityFX: selected PC upscaler"); Ok(()) } @@ -339,6 +340,7 @@ fn select_version(query_fn: Call, device: &ID3D12Device) -> Result<(u64, String) )); } let mut available = Vec::new(); + let mut fallback_3_1 = None; for (id, name) in ids.into_iter().zip(names).take(count as usize) { if !name.is_null() { // SAFETY: NUL-terminated name owned by the SDK. @@ -348,9 +350,15 @@ fn select_version(query_fn: Call, device: &ID3D12Device) -> Result<(u64, String) if is_fsr_4_1(&name) { return Ok((id, name)); } + if name.starts_with("3.1.") { + fallback_3_1 = Some((id, name.clone())); + } available.push(name); } } + if let Some(provider) = fallback_3_1 { + return Ok(provider); + } Err(format!( "no FSR 4.1 provider for this adapter (available: {})", available.join(", ") @@ -393,7 +401,7 @@ fn host_state(state: u32) -> Option<u32> { extern "C" fn ffxCreateContext( context: *mut *mut c_void, desc: *mut Header, - memory: *const c_void, + _memory: *const c_void, ) -> u32 { let Some(host) = HOST.get() else { return NO_PROVIDER; @@ -430,7 +438,7 @@ extern "C" fn ffxCreateContext( }); backend.header.next = &raw mut requested.header; // SAFETY: a PC chain; the title's later descriptions live for the call. - let code = unsafe { (host.create)(context, &mut upscale.header, memory) }; + let code = unsafe { (host.create)(context, &mut upscale.header, null()) }; if code != OK { tracing::error!(code, render = ?upscale.max_render, output = ?upscale.max_output, flags = format_args!("{:#x}", upscale.flags), "FidelityFX: the host refused the title's upscaler"); return code; @@ -450,7 +458,9 @@ extern "C" fn ffxCreateContext( .then(|| unsafe { CStr::from_ptr(version.name) }.to_string_lossy()); if query_code != OK || version.id != host.provider_id - || !name.as_deref().is_some_and(is_fsr_4_1) + || !name + .as_deref() + .is_some_and(|n| is_fsr_4_1(n) || n.starts_with("3.1.")) { tracing::warn!( query_code, @@ -458,7 +468,7 @@ extern "C" fn ffxCreateContext( "FidelityFX created a different provider than the requested 4.1" ); // SAFETY: the PC provider just created the context with this allocator. - unsafe { (host.destroy)(context, memory) }; + unsafe { (host.destroy)(context, null()) }; return NO_PROVIDER; } // SAFETY: a successful SDK creation wrote an opaque context into this slot. @@ -485,7 +495,7 @@ extern "C" fn ffxCreateContext( OK } -extern "C" fn ffxDestroyContext(context: *mut *mut c_void, memory: *const c_void) -> u32 { +extern "C" fn ffxDestroyContext(context: *mut *mut c_void, _memory: *const c_void) -> u32 { let Some(host) = HOST.get() else { return NO_PROVIDER; }; @@ -507,7 +517,7 @@ extern "C" fn ffxDestroyContext(context: *mut *mut c_void, memory: *const c_void // The guest releases a context after submitting its frames. The host // may still be executing their lists, even after guest Execute returns. victory_gpu::external::finish_submitted(); - let code = unsafe { (host.destroy)(context, memory) }; + let code = unsafe { (host.destroy)(context, null()) }; if code == OK { *live = false; let mut contexts = CONTEXTS.lock().unwrap_or_else(|e| e.into_inner()); ``` The patch also reflects on the F3 panel even tho the UI is a bit glitchy for me cause I am running 15 fps -> 30 with this patch. I am currently using: ``` VICTORY_MENU=1 VICTORY_LOG=warn VICTORY_BVH_BUILDER=0 VICTORY_PAGES=0 VICTORY_CARD_PULL=0 KEEP_FREE=4096 VICTORY_LOD_SCALE=0.25 VICTORY_SMALL_CULL=4.0 VICTORY_VEHICLE_LOD_BIAS=0.5 VICTORY_FULLSCREEN=1 VICTORY_SKIP_BINK=1 VICTORY_OUTPUT=1920x1080 VICTORY_UI_PLANE=1920x1080 VICTORY_FSR_4K=performance VICTORY_FIDELITYFX_FRAMEGEN=1 VICTORY_PLACED_COPIED=1 ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 05:06:54 +00:00
github-bot changed title from FSR 4.1 fallback to FSR 3.1 and framegen enable for RDNA2 (and maybe 3?) cards to FSR 4.1 fallback to FSR 3.1 and framegen enable for RDNA2 (and maybe 3?) cards (with a possible approach) 2026-12-02 05:19:11 +00:00
Author
Owner

@⁠AllerechtePaul on GitHub · 2026-12-02 15:38 UTC · original

Hello @⁠EzequielGhR , currently I am encountering the same issue as you... I'd like to play with FSR but my graphics card doesn't support FSR 4.1. Thats why I wanted to ask, how you managed to create a fallback to FSR 3.1.6, if FSR 4.1 doesn't work. I'd really appreciate, if you could help me!

**@⁠AllerechtePaul** on GitHub · 2026-12-02 15:38 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/160#issuecomment-7350683604) Hello @⁠EzequielGhR , currently I am encountering the same issue as you... I'd like to play with FSR but my graphics card doesn't support FSR 4.1. Thats why I wanted to ask, how you managed to create a fallback to FSR 3.1.6, if FSR 4.1 doesn't work. I'd really appreciate, if you could help me!
Author
Owner

@⁠EzequielGhR on GitHub · 2026-12-02 17:31 UTC · original

@⁠AllerechtePaul Basically it uses the same ABI so the calls done for FSR4 should work for FSR3.1. There is however a crash on ffxCreateContext and ffxDeleteContext because it sends the memory as attribute, I am just sending null().

Download this patch, its set on current master at least as I write this:

fsr3.patch

in your local main do git pull to be up to date
then from the root do git apply [your path to fsr3.patch]

then run setup.sh again and it should rebuild victory cause it changes some files

As of how its made, you need to set up two flags on your run.conf

VICTORY_FSR_4K=performance
VICTORY_FIDELITYFX_FRAMEGEN=1

Then try it out and let me know if it works for you.

I am currently trying to get more juice out of it, yesterday I was averaging 15-18 fps so results with framegen where very good, now I am 10-12 so still working on it.

**@⁠EzequielGhR** on GitHub · 2026-12-02 17:31 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/160#issuecomment-7353380484) @⁠AllerechtePaul Basically it uses the same ABI so the calls done for FSR4 should work for FSR3.1. There is however a crash on ffxCreateContext and ffxDeleteContext because it sends the memory as attribute, I am just sending null(). Download this patch, its set on current master at least as I write this: [fsr3.patch](https://github.com/user-attachments/files/35755918/fsr3.patch) in your local main do `git pull` to be up to date then from the root do `git apply [your path to fsr3.patch]` then run `setup.sh` again and it should rebuild victory cause it changes some files As of how its made, you need to set up two flags on your run.conf VICTORY_FSR_4K=performance VICTORY_FIDELITYFX_FRAMEGEN=1 Then try it out and let me know if it works for you. I am currently trying to get more juice out of it, yesterday I was averaging 15-18 fps so results with framegen where very good, now I am 10-12 so still working on it.
Author
Owner

@⁠EzequielGhR on GitHub · 2026-12-02 17:45 UTC · original

BTW It might be actually easier than this, I saw someone mention using optiscaler fsr dlls drop ins in deps/fsr4 worked for them, I will check that out today:

https://github.com/optiscaler/OptiScaler/releases/tag/v0.9.5

also you need to run setup.sh fsr4 I believe to get the original dlls (I think they are from the 2.4 amd release), then replace those. If it works better than this I might close the issue

**@⁠EzequielGhR** on GitHub · 2026-12-02 17:45 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/160#issuecomment-7353612036) BTW It might be actually easier than this, I saw someone mention using optiscaler fsr dlls drop ins in deps/fsr4 worked for them, I will check that out today: https://github.com/optiscaler/OptiScaler/releases/tag/v0.9.5 also you need to run setup.sh fsr4 I believe to get the original dlls (I think they are from the 2.4 amd release), then replace those. If it works better than this I might close the issue
Author
Owner

@⁠AllerechtePaul on GitHub · 2026-12-02 20:46 UTC · original · edited 2026-12-02 20:53 UTC

@⁠EzequielGhR Thanks for fast reply. I'll try your new patch. But I have a question, cuz you mentioned I'd need to replace the amd_fidelity dlls, but with what? Where do I get the files to replace them with?
Cuz without replacing the files, I have FSR 4 running, but I think its not as good as FSR 3.1.6 on an AMD RX 6800 XT

And how they use OptiScaler? And whats better about it?

**@⁠AllerechtePaul** on GitHub · 2026-12-02 20:46 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/160#issuecomment-7358292875) · edited 2026-12-02 20:53 UTC @⁠EzequielGhR Thanks for fast reply. I'll try your new patch. But I have a question, cuz you mentioned I'd need to replace the amd_fidelity dlls, but with what? Where do I get the files to replace them with? Cuz without replacing the files, I have FSR 4 running, but I think its not as good as FSR 3.1.6 on an AMD RX 6800 XT And how they use OptiScaler? And whats better about it?
Author
Owner

@⁠AllerechtePaul on GitHub · 2026-12-02 21:11 UTC · original

Btw the repository got updated, so neither your first patch nor the fsr3.patch, you just sent me work anymore...

**@⁠AllerechtePaul** on GitHub · 2026-12-02 21:11 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/160#issuecomment-7358933047) Btw the repository got updated, so neither your first patch nor the fsr3.patch, you just sent me work anymore...
Author
Owner

@⁠EzequielGhR on GitHub · 2026-12-03 14:27 UTC · original

@⁠AllerechtePaul I created a pull request lets see if it gets merged!
My experience has been roughly this:

  • tweak my config -> get 17 to 21 fps
  • enable framegen and fsr balanced -> get 15 to 19 but interpolated looks above 30

About the optiscaler bit, I tried it and it did not work for me, the idea was to download the main dlls for the upscaler and framegen (amd_fidelity_fx_framegeneration_dx12.dll and amd_fidelityfx_upscaler_dx12.dll) from the release I linked, and drop them in the repo's root/deps/fsr4 replacing the existing ones (If you ran setup.sh fsr4 you would have them).

But still it detects me as not being able to use FSR4.1 so I still get soft locked, and thus also soft locked of the framegen feature (which is actually FSR 3.1 framegen as the docs say, but its deeply coupled to the FSR 4 flag, it was easier to implement a fallback than to decouple it)

**@⁠EzequielGhR** on GitHub · 2026-12-03 14:27 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/160#issuecomment-7381468748) @⁠AllerechtePaul I created a pull request lets see if it gets merged! My experience has been roughly this: - tweak my config -> get 17 to 21 fps - enable framegen and fsr balanced -> get 15 to 19 but interpolated looks above 30 About the optiscaler bit, I tried it and it did not work for me, the idea was to download the main dlls for the upscaler and framegen (amd_fidelity_fx_framegeneration_dx12.dll and amd_fidelityfx_upscaler_dx12.dll) from the release I linked, and drop them in the repo's root/deps/fsr4 replacing the existing ones (If you ran setup.sh fsr4 you would have them). But still it detects me as not being able to use FSR4.1 so I still get soft locked, and thus also soft locked of the framegen feature (which is actually FSR 3.1 framegen as the docs say, but its deeply coupled to the FSR 4 flag, it was easier to implement a fallback than to decouple it)
Author
Owner

@⁠Sayakema on GitHub · 2026-12-03 16:16 UTC · original

i have the same problem too, with fsr4 not working on rdna2 6800xt and turns out ive been using proton experimental, all i need to fix fsr4 is to move to protonge and now fsr4 works fine

**@⁠Sayakema** on GitHub · 2026-12-03 16:16 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/160#issuecomment-7384574206) i have the same problem too, with fsr4 not working on rdna2 6800xt and turns out ive been using proton experimental, all i need to fix fsr4 is to move to protonge and now fsr4 works fine
Author
Owner

@⁠AllerechtePaul on GitHub · 2026-12-03 16:21 UTC · original

@⁠EzequielGhR Could you maybe share me the .patch file? Cuz the old one doesn't work anymore since the repo got updated yesterday.

**@⁠AllerechtePaul** on GitHub · 2026-12-03 16:21 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/160#issuecomment-7384707629) @⁠EzequielGhR Could you maybe share me the .patch file? Cuz the old one doesn't work anymore since the repo got updated yesterday.
Author
Owner

@⁠EzequielGhR on GitHub · 2026-12-03 16:23 UTC · original

@⁠Sayakema Weird! I am using Proton GE 11-1
@⁠AllerechtePaul Why don't you try my fork for now? You can checkout the branch that is presented for the PR #324

**@⁠EzequielGhR** on GitHub · 2026-12-03 16:23 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/160#issuecomment-7384754341) @⁠Sayakema Weird! I am using Proton GE 11-1 @⁠AllerechtePaul Why don't you try my fork for now? You can checkout the branch that is presented for the PR #324
Author
Owner

@⁠EzequielGhR on GitHub · 2026-12-03 16:27 UTC · original

Hey Got Merged!

**@⁠EzequielGhR** on GitHub · 2026-12-03 16:27 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/160#issuecomment-7384866525) Hey Got Merged!
Author
Owner

@⁠AllerechtePaul on GitHub · 2026-12-03 19:50 UTC · original · edited 2026-12-03 20:08 UTC

@⁠EzequielGhR Yee saw it got merged, but whats the command required to run the FSR 3.1.6? Cuz normally I'd be ./setup.sh fsr4 but thats not for FSR 3.1.6?

Cuz on the newest build, it automatically runs FSR 4, although I think my RX 6800 XT doesn't support FSR 4, its still in the F3 menu.

**@⁠AllerechtePaul** on GitHub · 2026-12-03 19:50 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/160#issuecomment-7390325406) · edited 2026-12-03 20:08 UTC @⁠EzequielGhR Yee saw it got merged, but whats the command required to run the FSR 3.1.6? Cuz normally I'd be ./setup.sh fsr4 but thats not for FSR 3.1.6? Cuz on the newest build, it automatically runs FSR 4, although I think my RX 6800 XT doesn't support FSR 4, its still in the F3 menu.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#160
No description provided.