RX 9060 XT: RT white blotches, UI twice too big at 1080p (Series X profile), plus some benchmarks #313

Open
opened 2026-11-26 19:59:05 +00:00 by github-bot · 6 comments
Owner

@⁠PikPakPik on GitHub · 2026-11-26 19:52 UTC · original

Hi! I've been running the fork on an RDNA4 card and wanted to share what I found, with some numbers.

My setup

  • RX 9060 XT 16 GB, driver 32.0.32029.2010 (Nov 18)
  • Ryzen 7 9700X, 32 GB RAM
  • Windows 11 Pro (build 26300.9974)
  • 1080p 60 Hz monitor
  • VIctory at cd8dfc0, diag build, plus a few local changes (listed at the end)

Benchmarks

I added a small log line that prints the fps once a second (same numbers as the window caption), so I could get real averages instead of eyeballing them. Every run loads into the same interior and I don't touch anything. I skip the first 15 s in the world and average the next ~90 s (total frames / total time). Menus and loading screens are left out.

# Config Avg FPS Avg ms Min Max
1 Series X, VICTORY_OUTPUT=1920x1080, VICTORY_RENDER_SCALE=1.0, no RT 19.8 50.4 5.3 29.0
2 same + -RayTracing 15.6 64.0 5.5 21.1
3 same + VICTORY_AMBIENT_RT=2 (my patch, see below) 13.4 74.9 5.9 19.7
4 --console series-s, no RT 26.8 37.3 17.7 31.0
5 Series S + -RayTracing + VICTORY_AMBIENT_RT=2 20.1 49.8 11.4 25.0

The GPU sits at 100 % in all the RT runs. In 2, 3 and 5 the builder does run (builder runs: all of its programs have host pipelines pipelines=53, and it never rests).

1. White blotches with ray tracing

With VICTORY_BVH_BUILDER=1, rooms do get their indirect light, but there are big blown-out white patches and black smears on walls, ceilings and faces, plus a few magenta/cyan specks. They don't go away if you wait.

At first I thought it was the pipelines the driver crashes on (see #2 below), but no: all 53 builder pipelines compile fine, and retrying the blocked ones with VICTORY_WARM_BAD=0 changed nothing. The memory stats show around 329 pages per frame with no copy, so my guess is it's the known gaps from docs/fork-ray-tracing.md (structures overwriting each other, missing pages read as zero).

What fixed it for me: I added VICTORY_AMBIENT_RT=<multiple> in ambient.rs. Normally the light stand-in turns off when the builder runs. With this set, it stays on and acts as a cap: the RT light can't go above N times the stand-in's estimate, and where RT gives less, the estimate fills in. With =2 the blotches are gone. It costs about 11 ms per frame (run 2 vs 3). Without the variable, nothing changes.

2. AMD compiler crashes on 35 compute pipelines

On startup amdxc64.dll crashes on 35 compute pipelines (rip=0x7fffa5431b9f address=0x8). The guard catches it and they end up in warm-bad.txt. On my card it's consistent: 34 of the 35 crash again when retried. I can send the key list if it helps.

3. UI twice too big at 1080p output (Series X profile)

With VICTORY_OUTPUT=1920x1080, menus, subtitles and button prompts keep their 4K pixel size, so they look twice as big. I tried:

  • VICTORY_DISPLAY_MODE=1920x1080
  • resolutionFullscreen = 1920x1080 in settings.xml
  • uiResolution = 1920x1080 in settings.xml (was 0x0)

None of them helped. --console series-s gets the UI right, and RT still works there (the builder only kicks in once you're in the world, not on the start screen). It's also the fastest profile on my card, so that's what I'm using now.

My local changes

  • crates/victory-gpu/src/ambient.rs: VICTORY_AMBIENT_RT
  • crates/victory-gpu/src/host.rs: the once-a-second frame rate: log line
  • scripts/play.ps1: a -SeriesS switch (there was no way to pass --console through it)

Happy to open a PR for any of these if you're interested.

**@⁠PikPakPik** on GitHub · 2026-11-26 19:52 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/313) Hi! I've been running the fork on an RDNA4 card and wanted to share what I found, with some numbers. **My setup** - RX 9060 XT 16 GB, driver 32.0.32029.2010 (Nov 18) - Ryzen 7 9700X, 32 GB RAM - Windows 11 Pro (build 26300.9974) - 1080p 60 Hz monitor - VIctory at `cd8dfc0`, diag build, plus a few local changes (listed at the end) ## Benchmarks I added a small log line that prints the fps once a second (same numbers as the window caption), so I could get real averages instead of eyeballing them. Every run loads into the same interior and I don't touch anything. I skip the first 15 s in the world and average the next ~90 s (total frames / total time). Menus and loading screens are left out. | # | Config | Avg FPS | Avg ms | Min | Max | |---|---|---|---|---|---| | 1 | Series X, `VICTORY_OUTPUT=1920x1080`, `VICTORY_RENDER_SCALE=1.0`, no RT | 19.8 | 50.4 | 5.3 | 29.0 | | 2 | same + `-RayTracing` | 15.6 | 64.0 | 5.5 | 21.1 | | 3 | same + `VICTORY_AMBIENT_RT=2` (my patch, see below) | 13.4 | 74.9 | 5.9 | 19.7 | | 4 | `--console series-s`, no RT | 26.8 | 37.3 | 17.7 | 31.0 | | 5 | Series S + `-RayTracing` + `VICTORY_AMBIENT_RT=2` | 20.1 | 49.8 | 11.4 | 25.0 | The GPU sits at 100 % in all the RT runs. In 2, 3 and 5 the builder does run (`builder runs: all of its programs have host pipelines pipelines=53`, and it never rests). ## 1. White blotches with ray tracing With `VICTORY_BVH_BUILDER=1`, rooms do get their indirect light, but there are big blown-out white patches and black smears on walls, ceilings and faces, plus a few magenta/cyan specks. They don't go away if you wait. At first I thought it was the pipelines the driver crashes on (see #2 below), but no: all 53 builder pipelines compile fine, and retrying the blocked ones with `VICTORY_WARM_BAD=0` changed nothing. The memory stats show around 329 pages per frame with no copy, so my guess is it's the known gaps from `docs/fork-ray-tracing.md` (structures overwriting each other, missing pages read as zero). What fixed it for me: I added `VICTORY_AMBIENT_RT=<multiple>` in `ambient.rs`. Normally the light stand-in turns off when the builder runs. With this set, it stays on and acts as a cap: the RT light can't go above N times the stand-in's estimate, and where RT gives less, the estimate fills in. With `=2` the blotches are gone. It costs about 11 ms per frame (run 2 vs 3). Without the variable, nothing changes. ## 2. AMD compiler crashes on 35 compute pipelines On startup `amdxc64.dll` crashes on 35 compute pipelines (`rip=0x7fffa5431b9f address=0x8`). The guard catches it and they end up in `warm-bad.txt`. On my card it's consistent: 34 of the 35 crash again when retried. I can send the key list if it helps. ## 3. UI twice too big at 1080p output (Series X profile) With `VICTORY_OUTPUT=1920x1080`, menus, subtitles and button prompts keep their 4K pixel size, so they look twice as big. I tried: - `VICTORY_DISPLAY_MODE=1920x1080` - `resolutionFullscreen` = 1920x1080 in `settings.xml` - `uiResolution` = 1920x1080 in `settings.xml` (was 0x0) None of them helped. `--console series-s` gets the UI right, and RT still works there (the builder only kicks in once you're in the world, not on the start screen). It's also the fastest profile on my card, so that's what I'm using now. ## My local changes - `crates/victory-gpu/src/ambient.rs`: `VICTORY_AMBIENT_RT` - `crates/victory-gpu/src/host.rs`: the once-a-second `frame rate:` log line - `scripts/play.ps1`: a `-SeriesS` switch (there was no way to pass `--console` through it) Happy to open a PR for any of these if you're interested.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:59:05 +00:00
Author
Owner

@⁠PikPakPik on GitHub · 2026-11-26 22:57 UTC · original

Update: what actually helps on RDNA4 (RX 9060 XT)

Same machine as above. This time all numbers come from a once-a-second frame rate: log line, averaged over ~90 s in the world (first 15 s skipped). Since the story moves on between runs, I also compare at equal draws per frame, not just the overall average.

Best result so far

Series S profile + the PC FSR 4.1.2 serving the title's own upscaler calls (720p → 1080p, small local switch VICTORY_FSR_PC=1, no title patch) + VICTORY_PORT_JOURNAL=1 + VICTORY_PORT_GUARD=1:

Draws / frame Default play.ps1 (Series X, 4K out) Series S + PC FSR + JOURNAL + GUARD
1,000-1,500 19.6 fps (submit thread 48 ms) 30.0 fps (28 ms)
1,500-2,000 19.5 fps (49 ms) 29.7 fps (28 ms)
2,000+ 16.5 fps (56 ms) 26.2 fps (37 ms)
Average 18.7 fps 28.7 fps

With ray tracing (VICTORY_AMBIENT_RT bound on), the same setup gets ~22 fps.

What each piece is worth

  • PC FSR instead of the translated console FSR (Series S): 26.7 → 28.1 fps, and no second under 20 fps anymore. The picture is also sharper.
  • PORT_JOURNAL alone: the wait for the heaps' records drops from ~6.9 ms to ~0.9 ms; the submit thread is 2-4 ms lighter at equal draws.
  • PORT_GUARD on top: the big one for heavy scenes. At 2,000+ draws, the submit thread goes from 43.8 to 36.6 ms (22.2 → 26.2 fps).
  • Lifting the 30 fps cap (VICTORY_FRAME_INTERVAL_MS=16.667): 31-35 fps in light scenes, nothing more. It's still the submit thread.

What didn't help here

  • PORT_DESCRIPTORS: 2.8 fps. Its fallback fires thousands of times (writer=title+0x18849c). Not retried since #354.
  • PORT_CONSTANTS: a bit faster in light scenes, but worse in heavy ones (26.2 → 22.8 fps).
  • VICTORY_SUBMIT_SPLIT (from another fork), VICTORY_THIN=0, VICTORY_WINDOW_KB=256 + tails, VICTORY_LIST_RELEASE, LOD settings in settings.xml (ignored by the title): no gain or worse.
  • VICTORY_TEXTURE_POOL=0: saves ~2.2 GB of VRAM, but costs ~5 fps. Maybe useful for 8 GB cards.

Still open

  • Above ~2,000 draws, the submit thread still takes 37-47 ms, while the GPU sits at ~70 %.
  • With 32 GB of RAM, the process reaches ~26-29 GB private and only ~1-2 GB stays free. Slow seconds line up with hard page faults (~8,000 pages/s against ~600 at 30 fps).
  • After moving to the latest a-publier (49 commits), one run was 2-5 fps lower in very heavy scenes (3,500+ draws). I haven't confirmed whether that comes from the update or from the scene.

I can share the small local changes (VICTORY_FSR_PC, -SeriesS in play.ps1, the frame rate: log line) as a PR if that's useful.

**@⁠PikPakPik** on GitHub · 2026-11-26 22:57 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/313#issuecomment-7205129903) ## Update: what actually helps on RDNA4 (RX 9060 XT) Same machine as above. This time all numbers come from a once-a-second `frame rate:` log line, averaged over ~90 s in the world (first 15 s skipped). Since the story moves on between runs, I also compare at equal draws per frame, not just the overall average. ### Best result so far Series S profile + **the PC FSR 4.1.2 serving the title's own upscaler calls** (720p → 1080p, small local switch `VICTORY_FSR_PC=1`, no title patch) + `VICTORY_PORT_JOURNAL=1` + `VICTORY_PORT_GUARD=1`: | Draws / frame | Default `play.ps1` (Series X, 4K out) | Series S + PC FSR + JOURNAL + GUARD | |---|---|---| | 1,000-1,500 | 19.6 fps (submit thread 48 ms) | **30.0 fps** (28 ms) | | 1,500-2,000 | 19.5 fps (49 ms) | **29.7 fps** (28 ms) | | 2,000+ | 16.5 fps (56 ms) | **26.2 fps** (37 ms) | | Average | 18.7 fps | **28.7 fps** | With ray tracing (`VICTORY_AMBIENT_RT` bound on), the same setup gets ~22 fps. ### What each piece is worth - **PC FSR instead of the translated console FSR (Series S):** 26.7 → 28.1 fps, and no second under 20 fps anymore. The picture is also sharper. - **`PORT_JOURNAL` alone:** the wait for the heaps' records drops from ~6.9 ms to ~0.9 ms; the submit thread is 2-4 ms lighter at equal draws. - **`PORT_GUARD` on top:** the big one for heavy scenes. At 2,000+ draws, the submit thread goes from 43.8 to 36.6 ms (22.2 → 26.2 fps). - **Lifting the 30 fps cap** (`VICTORY_FRAME_INTERVAL_MS=16.667`): 31-35 fps in light scenes, nothing more. It's still the submit thread. ### What didn't help here - `PORT_DESCRIPTORS`: 2.8 fps. Its fallback fires thousands of times (`writer=title+0x18849c`). Not retried since #354. - `PORT_CONSTANTS`: a bit faster in light scenes, but worse in heavy ones (26.2 → 22.8 fps). - `VICTORY_SUBMIT_SPLIT` (from another fork), `VICTORY_THIN=0`, `VICTORY_WINDOW_KB=256` + tails, `VICTORY_LIST_RELEASE`, LOD settings in `settings.xml` (ignored by the title): no gain or worse. - `VICTORY_TEXTURE_POOL=0`: saves ~2.2 GB of VRAM, but costs ~5 fps. Maybe useful for 8 GB cards. ### Still open - Above ~2,000 draws, the submit thread still takes 37-47 ms, while the GPU sits at ~70 %. - With 32 GB of RAM, the process reaches ~26-29 GB private and only ~1-2 GB stays free. Slow seconds line up with hard page faults (~8,000 pages/s against ~600 at 30 fps). - After moving to the latest `a-publier` (49 commits), one run was 2-5 fps lower in very heavy scenes (3,500+ draws). I haven't confirmed whether that comes from the update or from the scene. I can share the small local changes (`VICTORY_FSR_PC`, `-SeriesS` in `play.ps1`, the `frame rate:` log line) as a PR if that's useful.
Author
Owner

@⁠YOZH3G on GitHub · 2026-11-27 10:28 UTC · original · edited 2026-11-27 10:29 UTC

please could you share changes?

**@⁠YOZH3G** on GitHub · 2026-11-27 10:28 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/313#issuecomment-7215921778) · edited 2026-11-27 10:29 UTC please could you share changes?
Author
Owner

@⁠PikPakPik on GitHub · 2026-11-27 10:32 UTC · original

Sure. My local changes are on this branch (one commit on top of a-publier as of 2026-11-26, PRs up to #324 merged):

https://github.com/PikPakPik/VIctory-Belobug-AMD/tree/share/rx9060xt-local
Commit: github.com/PikPakPik/VIctory-Belobug-AMD@50c7780e

git fetch https://github.com/PikPakPik/VIctory-Belobug-AMD.git share/rx9060xt-local
git switch -c rx9060xt FETCH_HEAD

What it contains:

  • -SeriesS in scripts/play.ps1 (--console series-s): 1080p output with the Series S menus. This fixes the UI being twice too big at 1080p with the Series X profile.
  • -FsrPC (VICTORY_FSR_PC=1): the PC FSR 4.1.2 handles the game's own upscaler calls at the game's own sizes, without patching the game. It needs fidelityfx_dir (or VICTORY_FIDELITYFX_DIR) to point to amd_fidelityfx_upscaler_dx12.dll.
  • VICTORY_AMBIENT_RT=<multiple> (for example 2): with ray tracing on, the ambient stand-in stays on as an upper bound on the rays' light. This hides the white RT blotches on the RX 9060 XT.
  • Faces: a translator/host fix so facial animation moves (details in docs/findings.md).
  • A frame rate: line in the log for each meter window, for averaging benchmarks.

On my RX 9060 XT the best setup so far is .\scripts\play.ps1 -SeriesS -FsrPC. Everything is off unless you opt in. It compiles (cargo check), but it is not polished and has no tests for the table case.

**@⁠PikPakPik** on GitHub · 2026-11-27 10:32 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/313#issuecomment-7216011132) Sure. My local changes are on this branch (one commit on top of `a-publier` as of 2026-11-26, PRs up to #324 merged): https://github.com/PikPakPik/VIctory-Belobug-AMD/tree/share/rx9060xt-local Commit: https://github.com/PikPakPik/VIctory-Belobug-AMD/commit/50c7780e ``` git fetch https://github.com/PikPakPik/VIctory-Belobug-AMD.git share/rx9060xt-local git switch -c rx9060xt FETCH_HEAD ``` What it contains: - **`-SeriesS`** in `scripts/play.ps1` (`--console series-s`): 1080p output with the Series S menus. This fixes the UI being twice too big at 1080p with the Series X profile. - **`-FsrPC`** (`VICTORY_FSR_PC=1`): the PC FSR 4.1.2 handles the game's own upscaler calls at the game's own sizes, without patching the game. It needs `fidelityfx_dir` (or `VICTORY_FIDELITYFX_DIR`) to point to `amd_fidelityfx_upscaler_dx12.dll`. - **`VICTORY_AMBIENT_RT=<multiple>`** (for example `2`): with ray tracing on, the ambient stand-in stays on as an upper bound on the rays' light. This hides the white RT blotches on the RX 9060 XT. - **Faces**: a translator/host fix so facial animation moves (details in `docs/findings.md`). - A `frame rate:` line in the log for each meter window, for averaging benchmarks. On my RX 9060 XT the best setup so far is `.\scripts\play.ps1 -SeriesS -FsrPC`. Everything is off unless you opt in. It compiles (`cargo check`), but it is not polished and has no tests for the table case.
Author
Owner

@⁠deRockerTom on GitHub · 2026-11-27 16:11 UTC · original

RX 7800 XT / 32 GB: where memory and CPU time go, what didn't help, and a first-run pitfall for benchmarks

Another RDNA3 data point, plus a few findings that may save others some time.

Setup

  • Ryzen 7 7800X3D, RX 7800 XT 16 GB (driver 32.0.32029.2010), 32 GB RAM, Windows 11 26300
  • a-publier at 4eb6cfd, diagnostics build, scripts\play.ps1 settings + VICTORY_PORT_JOURNAL=1 + VICTORY_PORT_GUARD=1, Series X unless noted
  • Numbers come from the log's memory and frame-rate lines (VICTORY_MEMORY_CATEGORIES=1) and from VICTORY_PROFILE

1. Memory on 32 GB

Series X Series S
Private ~1 min after the world loads 31.6 GB 25.9 GB
Of it in RAM / RAM free 18.5 GB / 1.3 GB 21.6 GB / 1.9 GB
After ~6 min 33.0 GB -
After a long session (hours) 47.1 GB, 16.7 GB in RAM, 0.9 GB free: heavy paging, very laggy -
  • Memory map at 33 GB (Series X): write-combined 17.5 GB (6.3 GB in RAM), views of the title's pages 8.6 GB, host textures 7.3 GB, title heaps 4.8 GB, host copies of title memory 4.8 GB (of which windows 3.7 GB), our own allocations 2.6 GB.
  • After the world loads, our own allocations keep growing in small blocks: 1.9 M to 2.6 M blocks under 4 KiB in 6 minutes. Small in bytes, but it looks like bookkeeping that is never trimmed. The device-removal book (book.rs) is on whenever DRED is, which play.ps1 asks for in diag builds; I haven't measured whether it accounts for this.
  • Video memory: 13.0 GB in use of a 13.6 GB budget (96 %) from the world's first seconds, with 8.5-9.6 GB of the PC's memory shared with the card. Both pools are full, and the worst frames (300-340 ms, 95 ms of them waiting for the GPU) line up with the shared figure jumping.

2. Where the submitting thread's time goes

Per frame at ~16 fps in the world: about 30 ms user + 15-17 ms kernel + 10-12 ms waiting for the submission lock, i.e. the whole frame. GPU 3D utilization stays at ~40 %.

From VICTORY_PROFILE (2 ms samples, 120 s, a rooftop with a long view distance), victory-submit thread:

  • 28 % waiting in shadow::wide for the victory-wide-* workers, mostly under Batch::refresh_spans (13 %). The workers themselves sit idle 82 % of the time.
  • ~20 % in the Windows heap (alloc/realloc/free), spread over Host::submit, card_steps::does_of, watch::Held::range, list::detach, behind::take_along.
  • 7 % in GetWriteWatch (via watch::ask_run), ~1 % in NtProtectVirtualMemory.

3. Tried, no measurable gain

Change How Result
VICTORY_WIDE_SPIN=100 1 manual run each, same rooftop Slightly worse (15.6 to 14.4 fps), same preparation time
VICTORY_PORT_CBV=1 Unattended, A B B A (see 5) 14.7 fps vs 15.4 / 15.8, preparation 48.9 vs 47.0 / 48.5 ms
Pre-sizing the vectors in four of the allocation sites above (local patch) Unattended, A B A B A B Preparation 47.5 / 48.2 ms vs 42.5 / 43.3 / 48.0 ms: within the drift of the series
VICTORY_WINDOWS_BAR_MB=2048 (local patch defaulting it on ≤ 32 GB PCs) 1 run, memory and video memory lines No effect: the card is past the 80 % line from the first world seconds, so no window ever goes there

For PORT_CBV and the allocation patch, the first run of the new variant is left out (see 4).

Run-to-run noise was about ±15 % in fps with the same build and spawn point, and preparation drifted 42 to 48 ms over a series whatever the build, so gains of a few percent are below what this kind of run can show.

Two notes for low-memory setups:

  • VICTORY_TEXTURE_BUDGET_MB only stops new host texture copies once reached, it frees none. With the budget under what the title uses, textures go missing. #512 would make it evict.
  • #386 reports the same picture on a 9070 XT with 32 GB: the sweep engages but has little to take.

4. Pitfall: the first run of a new build or setting

The first run with a new build, or with a setting that changes translated shaders (VICTORY_PORT_CBV here), started the world with ~930 pipelines being made. It stayed at 3.5 fps (283 ms/frame) for the whole run, with the CPU preparation normal, 0 ms on the GPU, up to 645 indirect draws dropped per frame, 61 ms/frame waiting for pipelines, and the backlog shrinking at ~4 pipelines/s. The next run with the same build and setting was normal. No warnings or errors told the two runs apart.

So any A/B comparison needs a warm-up run (or victory warm --used) per variant, or the first variant to be run looks 3-4x slower. This also matches the "pinned at 1.9 fps" stretch described in #143.

5. Tooling

VICTORY_KEYS makes runs unattended: 20:Enter,30:Enter,40:Enter,45:Enter takes the title from launch to the save's spawn point (front of the house after the first 2 missions, looking at the river) in ~55 s here. With a timed stop and a script that summarizes the frame-rate, submit-thread and memory lines per run, an A B B A series with warm-ups runs without anyone at the PC. The scripts are small PowerShell/Python files; happy to share them if they're useful.

AI-assisted (Claude Code); no game files.

**@⁠deRockerTom** on GitHub · 2026-11-27 16:11 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/313#issuecomment-7222971080) ## RX 7800 XT / 32 GB: where memory and CPU time go, what didn't help, and a first-run pitfall for benchmarks Another RDNA3 data point, plus a few findings that may save others some time. **Setup** - Ryzen 7 7800X3D, RX 7800 XT 16 GB (driver 32.0.32029.2010), 32 GB RAM, Windows 11 26300 - `a-publier` at `4eb6cfd`, diagnostics build, `scripts\play.ps1` settings + `VICTORY_PORT_JOURNAL=1` + `VICTORY_PORT_GUARD=1`, Series X unless noted - Numbers come from the log's memory and frame-rate lines (`VICTORY_MEMORY_CATEGORIES=1`) and from `VICTORY_PROFILE` ### 1. Memory on 32 GB | | Series X | Series S | |---|---|---| | Private ~1 min after the world loads | 31.6 GB | 25.9 GB | | Of it in RAM / RAM free | 18.5 GB / 1.3 GB | 21.6 GB / 1.9 GB | | After ~6 min | 33.0 GB | - | | After a long session (hours) | 47.1 GB, 16.7 GB in RAM, 0.9 GB free: heavy paging, very laggy | - | - Memory map at 33 GB (Series X): write-combined 17.5 GB (6.3 GB in RAM), views of the title's pages 8.6 GB, host textures 7.3 GB, title heaps 4.8 GB, host copies of title memory 4.8 GB (of which windows 3.7 GB), our own allocations 2.6 GB. - After the world loads, our own allocations keep growing in small blocks: 1.9 M to 2.6 M blocks under 4 KiB in 6 minutes. Small in bytes, but it looks like bookkeeping that is never trimmed. The device-removal book (`book.rs`) is on whenever DRED is, which `play.ps1` asks for in diag builds; I haven't measured whether it accounts for this. - Video memory: 13.0 GB in use of a 13.6 GB budget (96 %) from the world's first seconds, with 8.5-9.6 GB of the PC's memory shared with the card. Both pools are full, and the worst frames (300-340 ms, 95 ms of them waiting for the GPU) line up with the shared figure jumping. ### 2. Where the submitting thread's time goes Per frame at ~16 fps in the world: about 30 ms user + 15-17 ms kernel + 10-12 ms waiting for the submission lock, i.e. the whole frame. GPU 3D utilization stays at ~40 %. From `VICTORY_PROFILE` (2 ms samples, 120 s, a rooftop with a long view distance), `victory-submit` thread: - **28 %** waiting in `shadow::wide` for the `victory-wide-*` workers, mostly under `Batch::refresh_spans` (13 %). The workers themselves sit idle 82 % of the time. - **~20 %** in the Windows heap (alloc/realloc/free), spread over `Host::submit`, `card_steps::does_of`, `watch::Held::range`, `list::detach`, `behind::take_along`. - **7 %** in `GetWriteWatch` (via `watch::ask_run`), ~1 % in `NtProtectVirtualMemory`. ### 3. Tried, no measurable gain | Change | How | Result | |---|---|---| | `VICTORY_WIDE_SPIN=100` | 1 manual run each, same rooftop | Slightly worse (15.6 to 14.4 fps), same preparation time | | `VICTORY_PORT_CBV=1` | Unattended, A B B A (see 5) | 14.7 fps vs 15.4 / 15.8, preparation 48.9 vs 47.0 / 48.5 ms | | Pre-sizing the vectors in four of the allocation sites above (local patch) | Unattended, A B A B A B | Preparation 47.5 / 48.2 ms vs 42.5 / 43.3 / 48.0 ms: within the drift of the series | | `VICTORY_WINDOWS_BAR_MB=2048` (local patch defaulting it on ≤ 32 GB PCs) | 1 run, memory and video memory lines | No effect: the card is past the 80 % line from the first world seconds, so no window ever goes there | For `PORT_CBV` and the allocation patch, the first run of the new variant is left out (see 4). Run-to-run noise was about ±15 % in fps with the same build and spawn point, and preparation drifted 42 to 48 ms over a series whatever the build, so gains of a few percent are below what this kind of run can show. Two notes for low-memory setups: - `VICTORY_TEXTURE_BUDGET_MB` only stops new host texture copies once reached, it frees none. With the budget under what the title uses, textures go missing. #512 would make it evict. - #386 reports the same picture on a 9070 XT with 32 GB: the sweep engages but has little to take. ### 4. Pitfall: the first run of a new build or setting The first run with a new build, or with a setting that changes translated shaders (`VICTORY_PORT_CBV` here), started the world with **~930 pipelines being made**. It stayed at **3.5 fps (283 ms/frame) for the whole run**, with the CPU preparation normal, 0 ms on the GPU, up to 645 indirect draws dropped per frame, 61 ms/frame waiting for pipelines, and the backlog shrinking at ~4 pipelines/s. The next run with the same build and setting was normal. No warnings or errors told the two runs apart. So any A/B comparison needs a warm-up run (or `victory warm --used`) per variant, or the first variant to be run looks 3-4x slower. This also matches the "pinned at 1.9 fps" stretch described in #143. ### 5. Tooling `VICTORY_KEYS` makes runs unattended: `20:Enter,30:Enter,40:Enter,45:Enter` takes the title from launch to the save's spawn point (front of the house after the first 2 missions, looking at the river) in ~55 s here. With a timed stop and a script that summarizes the frame-rate, submit-thread and memory lines per run, an A B B A series with warm-ups runs without anyone at the PC. The scripts are small PowerShell/Python files; happy to share them if they're useful. AI-assisted (Claude Code); no game files.
Author
Owner

@⁠youssoufrhouzlane-lang on GitHub · 2026-11-27 16:23 UTC · original

please can you help me on discord : ouiiiisamoss

**@⁠youssoufrhouzlane-lang** on GitHub · 2026-11-27 16:23 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/313#issuecomment-7223196487) please can you help me on discord : ouiiiisamoss
Author
Owner

@⁠deRockerTom on GitHub · 2026-11-27 16:55 UTC · original

Follow-up: the "submission lock" figure, and mimalloc

Same machine and setup as above, unattended runs with a warm-up per variant, A B B A.

1. "ms waiting for the submission lock" is not lock contention. In Host::submit it is started - called, which covers the lock and also card_steps, settle / relay_wait, the start of the heap sync and sweep(). That work also counts in the same line's user + kernel times. In a new profile (2 ms samples, 120 s, spawn point), actually waiting on submitted is negligible and settle is 1 % of victory-submit. Where Host::submit's time goes instead:

Callee Share of victory-submit
Batch::refresh_spans 15.2 %
Host::take_steps 14.7 %
stale_under_flights (mostly Shadow::merge_under_writes) 10.4 %
watch::ask_once 9.5 %
D3D12 calls (execute, allocator reset) ~6 %

Renaming the figure (or measuring the lock alone, as SPLIT[11] already does) would save the next reader from chasing a lock that isn't there.

2. mimalloc behind the diagnostics allocator (Counting delegating to mimalloc::MiMalloc 0.1.52 instead of System; local patch):

A1 A2 B1 B2 B - A
Preparing (ms/frame) 47.5 46.4 44.4 44.2 -2.7 ms (-6 %)
Submit thread kernel (ms/frame) 16.0 16.7 12.7 13.0 -3.5 ms
Submit thread user + kernel (ms/frame) 53.2 52.3 45.8 48.0 -5.9 ms
fps 16.0 16.0 15.0 15.9 -0.6
Private at the end (GB) 30.4 30.2 32.2 32.4 +2 GB

The CPU gain is consistent across both pairs, but it doesn't show in the frame rate, and mimalloc keeps about 2 GB more on a machine that has none to spare. So I didn't keep it. Two takeaways:

  • At ~60 ms a frame for ~45 ms of preparation, the submitting thread is no longer the whole critical path here: shaving it alone doesn't move fps.
  • If someone tries mimalloc on a 64 GB machine, where the extra memory is free, the CPU side might be worth a second look.

AI-assisted (Claude Code); no game files.

**@⁠deRockerTom** on GitHub · 2026-11-27 16:55 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/313#issuecomment-7223823755) ### Follow-up: the "submission lock" figure, and mimalloc Same machine and setup as above, unattended runs with a warm-up per variant, A B B A. **1. "ms waiting for the submission lock" is not lock contention.** In `Host::submit` it is `started - called`, which covers the lock and also `card_steps`, `settle` / `relay_wait`, the start of the heap sync and `sweep()`. That work also counts in the same line's user + kernel times. In a new profile (2 ms samples, 120 s, spawn point), actually waiting on `submitted` is negligible and `settle` is 1 % of `victory-submit`. Where `Host::submit`'s time goes instead: | Callee | Share of `victory-submit` | |---|---| | `Batch::refresh_spans` | 15.2 % | | `Host::take_steps` | 14.7 % | | `stale_under_flights` (mostly `Shadow::merge_under_writes`) | 10.4 % | | `watch::ask_once` | 9.5 % | | D3D12 calls (execute, allocator reset) | ~6 % | Renaming the figure (or measuring the lock alone, as `SPLIT[11]` already does) would save the next reader from chasing a lock that isn't there. **2. mimalloc behind the diagnostics allocator** (`Counting` delegating to `mimalloc::MiMalloc` 0.1.52 instead of `System`; local patch): | | A1 | A2 | B1 | B2 | B - A | |---|---|---|---|---|---| | Preparing (ms/frame) | 47.5 | 46.4 | 44.4 | 44.2 | **-2.7 ms (-6 %)** | | Submit thread kernel (ms/frame) | 16.0 | 16.7 | 12.7 | 13.0 | **-3.5 ms** | | Submit thread user + kernel (ms/frame) | 53.2 | 52.3 | 45.8 | 48.0 | -5.9 ms | | fps | 16.0 | 16.0 | 15.0 | 15.9 | -0.6 | | Private at the end (GB) | 30.4 | 30.2 | 32.2 | 32.4 | **+2 GB** | The CPU gain is consistent across both pairs, but it doesn't show in the frame rate, and mimalloc keeps about 2 GB more on a machine that has none to spare. So I didn't keep it. Two takeaways: - At ~60 ms a frame for ~45 ms of preparation, the submitting thread is no longer the whole critical path here: shaving it alone doesn't move fps. - If someone tries mimalloc on a 64 GB machine, where the extra memory is free, the CPU side might be worth a second look. AI-assisted (Claude Code); no game files.
This discussion has been locked. Commenting is limited to contributors.
No description provided.