Add RX 9070 XT launch workaround and performance telemetry #7

Closed
github-bot wants to merge 3 commits from github-bot/gh-7 into main AGit
Owner

@⁠SovietBearz0r on GitHub · 2026-12-01 20:38 UTC · original
SovietBearz0r:fix/9070xt-prologue-hud → main · +238 −2 · 4 files · 3 commits · closed without merging

Summary

  • Add a PowerShell launch profile for the RX 9070 XT, with an explicit game path override.
  • Add a 4K option that keeps the Fast, Stream, and SoftPages settings and disables the in-place constant-buffer port.
  • Expand the performance HUD and add opt-in PERF and LOAD log lines at two-second intervals.

Reproduction and validation

On an RX 9070 XT, the stock 4K profile showed the startup animation but presented black frames with audio in the in-engine intro. With only VICTORY_PORT_CONSTANTS=0 changed, the 4K diagnostic run rendered the Prologue title card and scene. The alignment and ring-size patches remained enabled. The underlying defect in the constant-buffer path has not been isolated.

The diagnostics build, PowerShell parser, staged asset-policy check, and diff whitespace check passed. The expanded HUD and telemetry were build-checked.

Validation checklist

  • Reproduce the black screen and verify the 4K workaround on an RX 9070 XT.
  • Build diagnostics and check PowerShell syntax.
  • Visually verify the updated HUD and F3 toggle in-game.
  • Verify periodic PERF/LOAD output with -PerfLog in a 3840x2160 run.

The launcher starts with the HUD hidden. Pass -Hud to show it at startup or press F3 in-game. Pass -PerfLog to enable periodic telemetry independently.

**@⁠SovietBearz0r** on GitHub · 2026-12-01 20:38 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/7) `SovietBearz0r:fix/9070xt-prologue-hud` → `main` · +238 −2 · 4 files · 3 commits · closed without merging ## Summary - Add a PowerShell launch profile for the RX 9070 XT, with an explicit game path override. - Add a 4K option that keeps the Fast, Stream, and SoftPages settings and disables the in-place constant-buffer port. - Expand the performance HUD and add opt-in PERF and LOAD log lines at two-second intervals. ## Reproduction and validation On an RX 9070 XT, the stock 4K profile showed the startup animation but presented black frames with audio in the in-engine intro. With only VICTORY_PORT_CONSTANTS=0 changed, the 4K diagnostic run rendered the Prologue title card and scene. The alignment and ring-size patches remained enabled. The underlying defect in the constant-buffer path has not been isolated. The diagnostics build, PowerShell parser, staged asset-policy check, and diff whitespace check passed. The expanded HUD and telemetry were build-checked. ## Validation checklist - [x] Reproduce the black screen and verify the 4K workaround on an RX 9070 XT. - [x] Build diagnostics and check PowerShell syntax. - [ ] Visually verify the updated HUD and F3 toggle in-game. - [x] Verify periodic PERF/LOAD output with -PerfLog in a 3840x2160 run. The launcher starts with the HUD hidden. Pass `-Hud` to show it at startup or press F3 in-game. Pass `-PerfLog` to enable periodic telemetry independently.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:40:08 +00:00
Author
Owner

@⁠LightningFlashEvE on GitHub · 2026-12-02 10:11 UTC · original

Additional RX 9070 XT baseline diagnostics for the startup/picture investigation.

Tested revision: main at 925ac0a32f6a05c31373a2843bc555f57afba4f7, locally built diag with diagnostics. PR branch testing and isolation of VICTORY_PORT_CONSTANTS=0 remain pending.

Environment

  • Windows 11 Pro build 26200; AMD driver 32.0.32029.2010
  • Ryzen 7 9850X3D, RX 9070 XT 16 GB, 32 GB system RAM
  • Series S; 30 fps cap; borderless; Fast/Stream/Soft Pages enabled
  • Extra GPU optimizations and in-place memory disabled; native console upscaler; frame generation disabled
  • Executable BLAKE3: b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93

1. First-run preparation fails when the pipelines directory is absent

On the initial cache, shader translation succeeded (25,985 shaders, zero failures). Warm used printed zero known/used pipelines and then exited with os error 3 (path not found), preventing launcher Play.

The local source points to a directory-creation issue in apps/victory/src/warm.rs: folder() calls cfg.cache_subdir("shaders")?.with_file_name("pipelines"). The first call creates shaders, but changing the path name does not create its sibling pipelines. Opening pipelines/warm-done.txt then fails when that parent is absent.

Creating %LOCALAPPDATA%\revictory\cache\pipelines made warm --used exit successfully. A possible fix is to return cfg.cache_subdir("pipelines") directly. A regression check could exercise Warm used with a fresh temporary cache and no recorded pipelines.

2. World rendering works after warming, but severe highlight clipping remains

The earlier black world with visible UI/subtitles did not recur in the tested scenes after the used pipelines were warmed. Movement, the opening follow-the-guard objective, corridors, and the indoor shooting tutorial were reached.

However, windows/some lamps and lit arms/nearby objects in the shooting tutorial show large nearly white/yellow regions with lost detail.

Comparisons on the same baseline:

  • RT off: about 30 fps in the tested gameplay interiors; approximately 24 GB process private memory.
  • RT on: some room/indirect lighting looks more natural, but the shooting tutorial still clips severely. About 25-30 fps initially, then 19-24 fps in later tested scenes; approximately 28-29 GB private memory.
  • Final RT renderer samples reported zero draws dropped for missing host pipelines, zero pending pipelines, and no device-removal error in those samples.
  • The game reports SDR presentation/HDR disabled. Gamma was 15; testing 5 did not eliminate the clipping and was reverted. Lowering the lighting stand-in and disabling Fast also gave no clear fix; those changes were reverted.
  • A lightweight non-RT exposure probe read logexp/target=-5.5 in the gameplay interior, matching the fixed value documented in lightprobe.rs. Complete color-output correctness is still unverified.
  • Windows repeatedly warned of low commit headroom. The page file stayed system-managed and grew automatically, so memory pressure is a limitation of these measurements.

The visual comparison is qualitative. A reference-console pixel comparison has not been performed, and screenshot/display-capture color handling has not been independently ruled out.

Could you advise whether the clipping is already tracked, whether the constants-path workaround is worth isolating for this symptom, and which lightweight diagnostic would be useful next?

Only observations and runtime statistics are included here. Full logs and the exposure CSV are retained locally for a requested, reviewed excerpt; no game assets, shader dumps, screenshots, or captures are attached.

**@⁠LightningFlashEvE** on GitHub · 2026-12-02 10:11 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/7#issuecomment-7342089270) Additional RX 9070 XT baseline diagnostics for the startup/picture investigation. **Tested revision:** main at `925ac0a32f6a05c31373a2843bc555f57afba4f7`, locally built `diag` with `diagnostics`. PR branch testing and isolation of `VICTORY_PORT_CONSTANTS=0` remain pending. ### Environment - Windows 11 Pro build 26200; AMD driver `32.0.32029.2010` - Ryzen 7 9850X3D, RX 9070 XT 16 GB, 32 GB system RAM - Series S; 30 fps cap; borderless; Fast/Stream/Soft Pages enabled - Extra GPU optimizations and in-place memory disabled; native console upscaler; frame generation disabled - Executable BLAKE3: `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93` ### 1. First-run preparation fails when the pipelines directory is absent On the initial cache, shader translation succeeded (25,985 shaders, zero failures). Warm used printed zero known/used pipelines and then exited with `os error 3` (path not found), preventing launcher Play. The local source points to a directory-creation issue in `apps/victory/src/warm.rs`: `folder()` calls `cfg.cache_subdir("shaders")?.with_file_name("pipelines")`. The first call creates `shaders`, but changing the path name does not create its sibling `pipelines`. Opening `pipelines/warm-done.txt` then fails when that parent is absent. Creating `%LOCALAPPDATA%\revictory\cache\pipelines` made `warm --used` exit successfully. A possible fix is to return `cfg.cache_subdir("pipelines")` directly. A regression check could exercise Warm used with a fresh temporary cache and no recorded pipelines. ### 2. World rendering works after warming, but severe highlight clipping remains The earlier black world with visible UI/subtitles did not recur in the tested scenes after the used pipelines were warmed. Movement, the opening follow-the-guard objective, corridors, and the indoor shooting tutorial were reached. However, windows/some lamps and lit arms/nearby objects in the shooting tutorial show large nearly white/yellow regions with lost detail. Comparisons on the same baseline: - RT off: about 30 fps in the tested gameplay interiors; approximately 24 GB process private memory. - RT on: some room/indirect lighting looks more natural, but the shooting tutorial still clips severely. About 25-30 fps initially, then 19-24 fps in later tested scenes; approximately 28-29 GB private memory. - Final RT renderer samples reported zero draws dropped for missing host pipelines, zero pending pipelines, and no device-removal error in those samples. - The game reports SDR presentation/HDR disabled. Gamma was 15; testing 5 did not eliminate the clipping and was reverted. Lowering the lighting stand-in and disabling Fast also gave no clear fix; those changes were reverted. - A lightweight non-RT exposure probe read `logexp/target=-5.5` in the gameplay interior, matching the fixed value documented in `lightprobe.rs`. Complete color-output correctness is still unverified. - Windows repeatedly warned of low commit headroom. The page file stayed system-managed and grew automatically, so memory pressure is a limitation of these measurements. The visual comparison is qualitative. A reference-console pixel comparison has not been performed, and screenshot/display-capture color handling has not been independently ruled out. Could you advise whether the clipping is already tracked, whether the constants-path workaround is worth isolating for this symptom, and which lightweight diagnostic would be useful next? Only observations and runtime statistics are included here. Full logs and the exposure CSV are retained locally for a requested, reviewed excerpt; no game assets, shader dumps, screenshots, or captures are attached.
Author
Owner

@⁠rpmaster2 on GitHub · 2026-12-02 15:26 UTC · original

Another RX 9070 XT datapoint on the same revision (925ac0a), release build, series-x, Windows 11, Ryzen 5 5600, 32 GB, 1080p display. Save at the house after the first mission; fixed route house → gun shop → back, 180 s, measured from an explicit start.

Baseline after shaders + warm --used (two runs, median):

  • 4–6k draws: 19.9 fps (p10 17.3)
  • 6–8k: 16.1 (14.8)
  • 8k+: 14.8 (13.9), up to 9,991 draws
  • 0 frames over 250 ms (max 75 ms); peak private 31.5 GB

Free play, chapter 1: up to 13,504 draws at 9.2 fps (108.8 ms); 6–10k median 13.7; no frame over 250 ms in 141 samples.

Two findings that may help this PR:

  1. Device removal after long compute compiles (not reproduced after warming): two compute pipelines made in 11,739.6 ms and 11,806.4 ms; the pipeline library failed to load them (0x80070057); then host GPU device removed after 19 submissions sent ahead (VICTORY_RELAY=1) of 282 lists, 0x887A0006 → 0x887A0004. After warm --used the same place ran without the stall. On the default 2 s TDR this looks like the expected outcome of a 12 s compile on the submit thread.
  2. -RayTracing: interior lighting flickers frame to frame (brightness steps as the camera moves); outdoors stable. Reproducible twice from the same save, no RT error in the log, victory_hle::bvh_probe present. Looks like the first known gap in docs/fork-ray-tracing.md (dynamic structures overlap; submissions land up to two frames late). Note: flicker, not the highlight clipping reported above.

Frame budget at 4–6k draws: 46–52 ms, of which copies 10–12 ms / 37–39 MB, copy back 16–18 ms / 18–21 MB, GPU 3–4 ms.

AI-assisted: written by DeepSeek (OpenCode harness) for rpmaster2; no game data included.

**@⁠rpmaster2** on GitHub · 2026-12-02 15:26 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/7#issuecomment-7350337071) Another RX 9070 XT datapoint on the same revision (`925ac0a`), release build, `series-x`, Windows 11, Ryzen 5 5600, 32 GB, 1080p display. Save at the house after the first mission; fixed route house → gun shop → back, 180 s, measured from an explicit start. Baseline after `shaders` + `warm --used` (two runs, median): - 4–6k draws: **19.9 fps** (p10 17.3) - 6–8k: **16.1** (14.8) - 8k+: **14.8** (13.9), up to 9,991 draws - **0 frames over 250 ms** (max 75 ms); peak private 31.5 GB Free play, chapter 1: up to 13,504 draws at 9.2 fps (108.8 ms); 6–10k median 13.7; no frame over 250 ms in 141 samples. Two findings that may help this PR: 1. **Device removal after long compute compiles** (not reproduced after warming): two compute pipelines made in 11,739.6 ms and 11,806.4 ms; the pipeline library failed to load them (`0x80070057`); then `host GPU device removed after 19 submissions sent ahead (VICTORY_RELAY=1) of 282 lists`, `0x887A0006` → `0x887A0004`. After `warm --used` the same place ran without the stall. On the default 2 s TDR this looks like the expected outcome of a 12 s compile on the submit thread. 2. **`-RayTracing`: interior lighting flickers** frame to frame (brightness steps as the camera moves); outdoors stable. Reproducible twice from the same save, no RT error in the log, `victory_hle::bvh_probe` present. Looks like the first known gap in `docs/fork-ray-tracing.md` (dynamic structures overlap; submissions land up to two frames late). Note: flicker, not the highlight clipping reported above. Frame budget at 4–6k draws: 46–52 ms, of which copies 10–12 ms / 37–39 MB, copy back 16–18 ms / 18–21 MB, GPU 3–4 ms. *AI-assisted: written by DeepSeek (OpenCode harness) for rpmaster2; no game data included.*
github-bot closed this pull request 2026-12-02 15:49:11 +00:00
Author
Owner

@⁠SovietBearz0r on GitHub · 2026-12-02 15:45 UTC · original

Superseded by #14, which includes this launch workaround and telemetry together with the AMD integration changes.

**@⁠SovietBearz0r** on GitHub · 2026-12-02 15:45 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/7#issuecomment-7350864482) Superseded by #14, which includes this launch workaround and telemetry together with the AMD integration changes.
Author
Owner

@⁠SovietBearz0r on GitHub · 2026-12-02 16:25 UTC · original

Thanks @⁠rpmaster2 for running the same route twice and breaking down the frame budget. We closed this PR because #14 contains the RX 9070 XT launch workaround and telemetry from here.

The warmed route gives us a good comparison point. I’ll treat the cold-start device removal as a separate issue. The two roughly 12-second compute pipeline builds, the library load failures, and the device removal occurred in the same run. Warming prevented the stall on your repeat, but that sequence alone doesn't establish what triggered the removal. The copy and copy-back costs you measured are also useful targets to compare on the same route.

The reproducible RT interior brightness steps sound like a separate visual issue from the earlier highlight clipping and from our black Prologue workaround. The late dynamic-structure updates in the RT notes are a plausible lead. We haven't verified that link or a fix.

If you try #14, the most useful comparison would be the same warmed route and draw-count buckets, with RT off for performance and the interior RT repro checked separately. Please keep file-backed memory off for that test. It’s experimental and made the pre-rendered startup movie green in our test.

**@⁠SovietBearz0r** on GitHub · 2026-12-02 16:25 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/7#issuecomment-7351935331) Thanks @⁠rpmaster2 for running the same route twice and breaking down the frame budget. We closed this PR because #14 contains the RX 9070 XT launch workaround and telemetry from here. The warmed route gives us a good comparison point. I’ll treat the cold-start device removal as a separate issue. The two roughly 12-second compute pipeline builds, the library load failures, and the device removal occurred in the same run. Warming prevented the stall on your repeat, but that sequence alone doesn't establish what triggered the removal. The copy and copy-back costs you measured are also useful targets to compare on the same route. The reproducible RT interior brightness steps sound like a separate visual issue from the earlier highlight clipping and from our black Prologue workaround. The late dynamic-structure updates in the RT notes are a plausible lead. We haven't verified that link or a fix. If you try #14, the most useful comparison would be the same warmed route and draw-count buckets, with RT off for performance and the interior RT repro checked separately. Please keep file-backed memory off for that test. It’s experimental and made the pre-rendered startup movie green in our test.

Pull request closed

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