Repository navigation
Conversation
The host FidelityFX path (VICTORY_FIDELITYFX_DIR) only runs when the title picks FidelityFX, which it does on Series S. Two diagnostics switches make Series X use it too: - VICTORY_UPSCALER=<kind> makes the title's upscaler picker return kind (7, FidelityFX); on Series X it picks the title's own upscaler. - VICTORY_FFX_SCALE=<scale> sets the render scale of that path, 1.0 on Series X, which with FidelityFX forced on is more than the title's memory plan allows. 0.5 renders 1080p for a 4K output. No title address is kept: each finds its code by a byte pattern, call and RIP-relative offsets left open, that must match exactly once in the title's executable sections; a build where it does not is left alone. In Grand Theft Auto VI 1.0.2.1 each matches once. The write itself is LoadedImage::write_code in victory-loader (diagnostics builds only), an unsafe fn for code that has not run yet. It writes only inside one region VirtualQuery reports as committed, executable image pages with one protection, so the protection put back is right for every page; then it restores the protection and flushes the instruction cache, and reports a failure of either after writing as an error. No Cargo.toml or Cargo.lock change: the loader already has the Win32 features. In the app: - The patches run first in the diagnostics setup, before the stack dump, audio capture, watch and poke threads start, and before the title's TLS callbacks and entry point. - With both switches set, both are found before either is written and the scale goes first: the picker alone would render at full size. An error after writing, or only the scale taking, stops the launch. Reworked from #1284 onto main's fidelityfx module. (cherry picked from commit 0c9187dea3811bfac0c327700e6c9569231b01cb) (cherry picked from commit 7d22a9e7e5ec681ac04154a370423318d2ea364a)
Takes the host FidelityFX path of upstream 0b35b7f (Marvisak/VIctory): the fidelityfx HLE module that serves the title AMD's PC upscaler from VICTORY_FIDELITYFX_DIR, external host libraries recording into title lists, and the feature queries the upscaler's capability check makes. The console upscaler's shader work and the other recompiler changes of that commit are left out. (cherry picked in part from commit 0b35b7f) (cherry picked from commit 2303194224459b25129eb532136189b0d41bc27f)
The title asks for no frame generation, and main's host FidelityFX module refuses it. A diagnostics switch now generates frames on the host from the title's upscale, as #1287 did on its own FidelityFX path: - With VICTORY_FIDELITYFX_FRAMEGEN=1 beside VICTORY_FIDELITYFX_DIR, amd_fidelityfx_framegeneration_dx12.dll is loaded from the same folder and the presenter's swap chain becomes its proxy (RGBA8 only). - At each host upscale, the HLE module hands the upscale's depth, motion vectors and constants to victory_gpu::external::frame_generation_inputs; they feed the next present once the list has run (HostList::defer_after, so no change to submission or reset). - Before each present the generator is configured and given those inputs in the presenter's copy list; the proxy inserts the generated frames during Present. It uses the provider that works from depth and motion vectors (FSR 3 frame generation): frame generation 4 wants view matrices the upscale does not carry. No HUD-less colour is given, so the UI is interpolated with the scene. (cherry picked from commit ed89e4ad97482973201530e1ecb094f05ad9fad7) (cherry picked from commit 5315ed164889be3e2976b61fced522528f4b2239)
(cherry picked from commit d900d3c6d35cdc7c29ffc923fe71ec03bcdf5263) (cherry picked from commit 520fe63dc7ca1409286552646b52534ab8eeb951)
(cherry picked from commit 83911f02601ecbe22f2ca5e03e6a34917fbd0f52) (cherry picked from commit aff44532f1610a65b923a10050581c7c88ec902d)
(cherry picked from commit 53cf23c03223d09327649b3d0ebabcffc9fed687) (cherry picked from commit e56ae1d4a0042d882439d1616fbee00ee37f84e5)
(cherry picked from commit af3603e1f25a56a439c144c537586a4c4365cab8) (cherry picked from commit b4fc8ed7d157df3709481ddafbe016aa9eed1b52)
(cherry picked from commit 5010424484153cd757e9d27f86fa028053e8f475) (cherry picked from commit ff6a90c6ec4ca7d26e4304ba232f668156462c5d)
…on 4 (cherry picked from commit 8ecb79c8da9c6e5e87d6b890a218ef51d332d3a5) (cherry picked from commit 8faca03c3f5f276d3d345e944e6b868ce292ba69)
(cherry picked from commit a820d0370e7d1a3c3a0ff138b93ecc0a3c4b1872) (cherry picked from commit 8e7a72ce1d356ef3147cc74f9b63c769b2d1e090)
Camera candidates are kept when their list is submitted (this fork has no after-the-run step; the upscale that takes them runs after on the same queue), the viewport comes from the draw state's own list, and the constant buffer trace test imports its type. (cherry picked from commit 2cfe15ab36d3873d3a7d6102d3aa1894a0eac56d)
Its pipeline is marked done with no host pipeline before it is queued, so the driver never compiles it: the RDNA 4 compiler crashes on compute 39f0e9aeb156a61c (amdxc64.dll+0x861b9f). As upstream 57f13cf (#1320) does, fitted to this fork's pipeline queue. (cherry picked from commit 19110dc715708cb9f9630200a8ec7318f35ea192)
When the driver's compiler crashes making a pipeline (an access near address 0 on the thread making it: the RDNA 4 compiler at amdxc64.dll+0x861b9f), the pipeline is logged, written to crashed.txt in the library's folder and left out from then on, and only that thread is parked. From Belobug/VIctory-Belobug-AMD 0d2f6a6. (cherry picked from commit b2b4a446658ebdab73eeee8cc4b38f074b3efc4b)
Not from a list sent ahead (late-free presents): case E (FSR 1440p + frame generation 3) crashed after four minutes freeing objects in bury (victory-gpu host.rs). Upstream runs frame generation this way. (cherry picked from commit be391d32213196d26962beb40da0d11216a6151b)
(cherry picked from commit ff9483ee6724c3a2cf09e8464513d9d581463161)
(cherry picked from commit f239382850903e9a811aa7d603aadfe7b6e06458)
(cherry picked from commit 7535fad11a092ff7f9ef108efcc4da2d9d0c8a60)
(cherry picked from commit 6d3656beb499681b1e578ca5f559c4ec7d1aadab)
Owner
Author
|
Review: REJECTED. Frame generation inserts frames the title never rendered, and the host FSR replaces the title's own FidelityFX passes: an fps/visual enhancement, not a translation (Translate, don't fake). Its RX 9070 XT compiler-crash guard is useful and covered by #310. It also carries 12 later upstream commits. Not closed yet: rejections are confirmed with the maintainers of this fork first. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎮 AMD FSR + Frame Generation 3 / 4.0.2 on this fork
@avatarmanz, your fork is the fastest build around, so this brings the host FidelityFX work from upstream to it: AMD FSR upscaling, Frame Generation 3, and the experimental Frame Generation 4.0.2 with the title's camera. It all ran here on an RX 9070 XT (results below). On your 7900 XTX with 64 GB it should run in full mode too. A quick run on your machine would be the most useful test. The commands are below.
📊 Results: RX 9070 XT, 32 GB,
-Safe, starting location██████████████░░███████████████░render=[1920, 1080] output=[3840, 2160]████████████████render=[2560, 1440] output=[3840, 2160]████████████████provider="3.1.6",presents=6for 3 rendered██████████████░░provider="4.0.2",camera_pose=trueRendered fps = median per second in the world, leaving out seconds under 5 fps (paging on 32 GB, counted separately).
What it shows
camera_pose=true): the velocity pass's camera is matched to each upscale. In play, HUD text flickered with FG 3 but not with FG 4.0.2.✅ Checks per mode
result=0e4b9cc9)📜 Log evidence
Our own log lines from each measured run (click a mode). In the fps lines,
preparing(our CPU side of each frame) is ~31–36 ms of ~50 ms, whatever the render scale: the frame is CPU-bound, which is why FSR moves fps so little and frame generation helps so much.A · Baseline: title's own upscaler · 18.4 fps rendered
A-20261126-025054B · FSR 1080p → 2160p: render 1920×1080 → 3840×2160 · 19.7 fps rendered
B-20261126-025703C · FSR 1440p → 2160p: render 2560×1440 → 3840×2160 · 20.0 fps rendered
C-20261126-030546E · FSR 1440p + FG 3: FG 3: proxy 3.1.7, generator 3.1.6, ×2 · 19.9 fps rendered
E-20261126-031014F · FSR 1440p + FG 4.0.2: FG 4.0.2: proxy 4.0.0, generator 4.0.2, camera_pose=true, ×2 · 17.9 fps rendered
F-20261126-031656Get the FidelityFX SDK (2.4.0 was used) and point at its
Kits\FidelityFX\signedbinfolder. Build as usual:scripts\play.ps1 -Exe <exe> -More @{ ... }VICTORY_FIDELITYFX_DIR='<signedbin>'; VICTORY_UPSCALER='7'; VICTORY_FFX_SCALE='0.5'VICTORY_FFX_SCALE='0.6666667'VICTORY_FIDELITYFX_FRAMEGEN='1'VICTORY_FIDELITYFX_FRAMEGEN='4'VICTORY_FIDELITYFX_DIRhas to go through-More:play.ps1clears every otherVICTORY_*variable.🧩 What's in it
6342a262f243600b35b7f(only that part)b83a8d6…730690c549e567…cee7b2a1046978,e4b9cc947eefb0,4c68011Everything new is behind switches that are off by default. Without them a run is unchanged, apart from the compiler-crash guard.
Tested: Windows 11 (26300), RX 9070 XT (driver 32.0.32029.2010), Ryzen 7 9800X3D, 32 GB, title 1.0.2.1, Series X profile,
play.ps1 -Safe, 48 pipeline workers.