AMD integration: RX 9070 XT launch profile, renderer ports, and telemetry #14

Closed
github-bot wants to merge 10 commits from github-bot/gh-14 into main AGit
Owner

@⁠SovietBearz0r on GitHub · 2026-12-02 15:42 UTC · original
SovietBearz0r:amd-integration → main · +1154 −55 · 19 files · 10 commits · closed without merging

Summary

This combines the RX 9070 XT launch workaround and telemetry from #7 with the three ReVIctory performance PRs we tested locally and four targeted ports from related forks. It is an integration PR. #7 is the smaller alternative for the launcher and telemetry changes.

Change Source and scope
Split large title-memory allocations into sections #3, preserving the original author and the 64 MiB default.
Apply lane priority on homogeneous CPUs #9, preserving the original author. Report the scheduling mode in the HUD and run log.
Write-watched large allocations #10, preserving the original author. Opt in with VICTORY_ALLOC_WATCHED_KB. Log successful allocations and rate-limit fallback warnings.
Packed BC7 reconstruction elaboratecl/VIctory-AMD-4K#6. Keep ReVIctory's existing AVX2 lane decoder and scalar reconstruction fallback. This ports the BC7 block reconstruction, not the fork's BC1 path or full decoder. Opt in with VICTORY_BCPACK_FAST_BC7=1.
Peak texture lateness lobomfz/VIctory-xmem#188. Keep ReVIctory's existing single-pass queue and recheck handling. Report the maximum frames past due since the previous LOAD sample.
Pixel-shader helper lanes MTrv0/VIctory-AMD-UM#4. Preserve killed lanes as helpers in live quads, retry unsupported constant-mask cases using the old behavior, and bump the shader-cache version.
File-backed physical sections The memory portion of MTrv0/VIctory-AMD-UM#1. Opt-in Windows experiment for eligible split allocations, with pagefile fallback. This does not import the fork's frame-generation, input, or descriptor bundle.

The performance HUD and PERF/LOAD logs are separately opt-in. Logging continues when the HUD is hidden. Existing warning and error logging remains active, and performance logging includes memory sections, lane priority, write-watch settings, buffer refresh costs, and texture lateness. Local logs are ignored by Git.

Observed on RX 9070 XT

  • Black in-engine Prologue: on Series X at 3840×2160 output, disabling VICTORY_PORT_CONSTANTS restored the picture. The alignment and ring-size patches stayed enabled. This remains a launch workaround.
  • Green pre-rendered startup movie: the combined build reached the 3D Prologue with file-backed sections enabled, but the Bink intro was green. The same binary played the movie normally with only VICTORY_FILE_PHYSICAL=0 changed. File-backed sections are off by default and should stay off for normal play on this setup.
  • Performance: the earlier uncapped Prologue pass for #3/#9/#10 was 27.1 FPS baseline versus 27.2 FPS combined (median sample FPS). Median submit time was 21.8 versus 19.7 ms, with different draw counts. The later four-port run was a cold-cache smoke test. These results do not establish an FPS improvement.

Review and validation

  • Diagnostic launcher build and lockfile check.
  • Formats suite (45 passed, 6 ignored) and shader structure suite (14 passed). The BC7 tests compare byte-for-byte across chunk boundaries and 4,096 varied control records.
  • Start the combined build, reach the Prologue, and verify allocation and texture timing telemetry.
  • Confirm normal startup movie with the file-backed option off.
  • Repeat matched gameplay runs with warmed shaders and toggle each optimization individually.
  • Validate file-backed mappings against the startup movie before considering wider use.

No game assets, captures, or raw run logs are included.

Validation limits

The full shader suite stalled in several hardware GPU tests locally. Strict Clippy reported warnings in existing renderer code. The repository-wide asset check flags two pre-existing launcher images whose blobs are unchanged by this PR. No image, capture, or runtime log is part of the diff.

**@⁠SovietBearz0r** on GitHub · 2026-12-02 15:42 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/14) `SovietBearz0r:amd-integration` → `main` · +1154 −55 · 19 files · 10 commits · closed without merging ## Summary This combines the RX 9070 XT launch workaround and telemetry from #7 with the three ReVIctory performance PRs we tested locally and four targeted ports from related forks. It is an integration PR. #7 is the smaller alternative for the launcher and telemetry changes. | Change | Source and scope | |---|---| | Split large title-memory allocations into sections | #3, preserving the original author and the 64 MiB default. | | Apply lane priority on homogeneous CPUs | #9, preserving the original author. Report the scheduling mode in the HUD and run log. | | Write-watched large allocations | #10, preserving the original author. Opt in with `VICTORY_ALLOC_WATCHED_KB`. Log successful allocations and rate-limit fallback warnings. | | Packed BC7 reconstruction | elaboratecl/VIctory-AMD-4K#6. Keep ReVIctory's existing AVX2 lane decoder and scalar reconstruction fallback. This ports the BC7 block reconstruction, not the fork's BC1 path or full decoder. Opt in with `VICTORY_BCPACK_FAST_BC7=1`. | | Peak texture lateness | lobomfz/VIctory-xmem#188. Keep ReVIctory's existing single-pass queue and recheck handling. Report the maximum frames past due since the previous `LOAD` sample. | | Pixel-shader helper lanes | MTrv0/VIctory-AMD-UM#4. Preserve killed lanes as helpers in live quads, retry unsupported constant-mask cases using the old behavior, and bump the shader-cache version. | | File-backed physical sections | The memory portion of MTrv0/VIctory-AMD-UM#1. Opt-in Windows experiment for eligible split allocations, with pagefile fallback. This does not import the fork's frame-generation, input, or descriptor bundle. | The performance HUD and `PERF`/`LOAD` logs are separately opt-in. Logging continues when the HUD is hidden. Existing warning and error logging remains active, and performance logging includes memory sections, lane priority, write-watch settings, buffer refresh costs, and texture lateness. Local logs are ignored by Git. ## Observed on RX 9070 XT - **Black in-engine Prologue**: on Series X at 3840×2160 output, disabling `VICTORY_PORT_CONSTANTS` restored the picture. The alignment and ring-size patches stayed enabled. This remains a launch workaround. - **Green pre-rendered startup movie**: the combined build reached the 3D Prologue with file-backed sections enabled, but the Bink intro was green. The same binary played the movie normally with only `VICTORY_FILE_PHYSICAL=0` changed. File-backed sections are off by default and should stay off for normal play on this setup. - **Performance**: the earlier uncapped Prologue pass for #3/#9/#10 was 27.1 FPS baseline versus 27.2 FPS combined (median sample FPS). Median submit time was 21.8 versus 19.7 ms, with different draw counts. The later four-port run was a cold-cache smoke test. These results do not establish an FPS improvement. ## Review and validation - [x] Diagnostic launcher build and lockfile check. - [x] Formats suite (45 passed, 6 ignored) and shader structure suite (14 passed). The BC7 tests compare byte-for-byte across chunk boundaries and 4,096 varied control records. - [x] Start the combined build, reach the Prologue, and verify allocation and texture timing telemetry. - [x] Confirm normal startup movie with the file-backed option off. - [ ] Repeat matched gameplay runs with warmed shaders and toggle each optimization individually. - [ ] Validate file-backed mappings against the startup movie before considering wider use. No game assets, captures, or raw run logs are included. ### Validation limits The full shader suite stalled in several hardware GPU tests locally. Strict Clippy reported warnings in existing renderer code. The repository-wide asset check flags two pre-existing launcher images whose blobs are unchanged by this PR. No image, capture, or runtime log is part of the diff.
A pool of 6.1 GiB was one section with all its views in one list. While the
host rebuilds large pages it goes through that list for each shared page it
moves, and the title's mapping calls wait for it, 1 to 4 ms a page.

VICTORY_SECTION_MB sets the size (0: one section, as before). Allocations up
to 256 MB stay whole: the 32-bit heap has to be one stretch of one section.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`cores::ask` returned before registering the thread when no core is faster
than another, so `settle` never gave the submitting thread and its helpers
their priority there and VICTORY_LANE_PRIORITY did nothing. The thread is now
registered either way; with no fast sets no processors are asked for (a null
selection), only the priority is set.

Xeon E5-2680 v4, the switch swapped every 12 s in one run: 66.6 ms a frame
with it, 72.1 without.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The host heap is not write-watched, so a title buffer in it is compared whole
at every refresh. With VICTORY_ALLOC_WATCHED_KB=<n>, blocks of n KiB and more
come from XMemVirtualAlloc (write-watched, below 2^40) and are freed through
title_virtual_free. Unset: as before.

One 21 MB committed buffer was compared twice a frame, 42 MB and 11 ms, for
0.15 MB that changed. With 1024 the submitting thread works 56-59 ms a frame
where it worked 66-71 (Xeon E5-2680 v4, Series S profile).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Adapt the packed reconstruction from https://github.com/elaboratecl/VIctory-AMD-4K/pull/6 to the existing batched lane decoder. Preserve p-bit positions for custom control words and compare the output against the stock path.
Port https://github.com/MTrv0/VIctory-AMD-UM/pull/4 with constant-mask fallback for runtime and offline translation. Bump the translator version so cached shaders are rebuilt.
Adapt peak texture lateness from https://github.com/lobomfz/VIctory-xmem/pull/188 and file-backed sections from https://github.com/MTrv0/VIctory-AMD-UM/pull/1. Keep file backing opt-in after reproducing a green startup movie on RX 9070 XT. Record runtime configuration and continue performance logging with the HUD hidden.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 15:43:59 +00:00
Author
Owner

@⁠CascOscuro-cmd on GitHub · 2026-12-02 23:13 UTC · original · edited 2026-12-02 23:16 UTC

Got this running on a RX 7900 XTX (24 GB, RDNA3) + Ryzen 7 9800X3D, 32 GB RAM, Windows 11.

With default settings the title menu rendered but the world came up black (no crash, VRAM ~6%, no TDR in the log). Switching to Safe settings in the launcher fixed it — world renders correctly.

Stable after that: ~60–75 fps (RT off), FSR 3.1, 1080p→4K, ~12 GB VRAM, frame time ~27 ms, GPU ~98% busy.

Tip: FSR 3.1 upscaling is worth enabling — it adds a further ~5-8 fps over the game's own upscaler.

Ray tracing: with RT off (the default) a few reflections and surfaces render oddly; turning RT on (-RayTracing) fixes those, but the frame rate drops to ~30 fps. (The README cites ~15 fps for RT on the dev's card, so it's actually a bit better here.)

So for other RDNA3 (RX 7000) users: it works — just start from Safe settings if the world is black. (I also saw ~287 pipelines being compiled on the fly in the first run, in case "Warm all" is relevant for that path.)

Thanks for the fork — this is the first GTA VI build that's actually playable on my card.

1 2 3 4
**@⁠CascOscuro-cmd** on GitHub · 2026-12-02 23:13 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/14#issuecomment-7361721817) · edited 2026-12-02 23:16 UTC Got this running on a RX 7900 XTX (24 GB, RDNA3) + Ryzen 7 9800X3D, 32 GB RAM, Windows 11. With default settings the title menu rendered but the world came up black (no crash, VRAM ~6%, no TDR in the log). Switching to Safe settings in the launcher fixed it — world renders correctly. Stable after that: ~60–75 fps (RT off), FSR 3.1, 1080p→4K, ~12 GB VRAM, frame time ~27 ms, GPU ~98% busy. Tip: FSR 3.1 upscaling is worth enabling — it adds a further ~5-8 fps over the game's own upscaler. Ray tracing: with RT off (the default) a few reflections and surfaces render oddly; turning RT on (-RayTracing) fixes those, but the frame rate drops to ~30 fps. (The README cites ~15 fps for RT on the dev's card, so it's actually a bit better here.) So for other RDNA3 (RX 7000) users: it works — just start from Safe settings if the world is black. (I also saw ~287 pipelines being compiled on the fly **in** the first run, in case "Warm all" is relevant for that path.) Thanks for the fork — this is the first GTA VI build that's actually playable on my card. <img width="1425" height="797" alt="1" src="https://github.com/user-attachments/assets/3f55f5f9-969b-40b2-a061-5a6c6d151591" /> <img width="1422" height="790" alt="2" src="https://github.com/user-attachments/assets/b40c9da2-1d13-46c4-8b16-ae0ef80f0825" /> <img width="2551" height="1377" alt="3" src="https://github.com/user-attachments/assets/72f358b1-8e3e-419f-bed5-1ec94f4dd3ce" /> <img width="2556" height="1377" alt="4" src="https://github.com/user-attachments/assets/6265bb50-4b13-41cd-b099-de1d82f393e9" />
github-bot closed this pull request 2026-12-04 02:03:07 +00:00
Author
Owner

@⁠ReTerryDavis on GitHub · 2026-12-04 02:01 UTC · original

Closing because this bundles separately tracked PRs (#3, #9, #10), a machine-specific root script (Play-9070XT.ps1), and experimental options with known regressions (VICTORY_FILE_PHYSICAL), and conflicts with recent refactors. Feel free to open small standalone PRs against main for individual verified pieces like bc7_fast.rs or pixel-shader helper lanes.

**@⁠ReTerryDavis** on GitHub · 2026-12-04 02:01 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/14#issuecomment-7398498714) Closing because this bundles separately tracked PRs (#3, #9, #10), a machine-specific root script (`Play-9070XT.ps1`), and experimental options with known regressions (`VICTORY_FILE_PHYSICAL`), and conflicts with recent refactors. Feel free to open small standalone PRs against `main` for individual verified pieces like `bc7_fast.rs` or pixel-shader helper lanes.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.