RX 9060 XT: RT white blotches, UI twice too big at 1080p (Series X profile), plus some benchmarks #313
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#313
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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
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.
VICTORY_OUTPUT=1920x1080,VICTORY_RENDER_SCALE=1.0, no RT-RayTracingVICTORY_AMBIENT_RT=2(my patch, see below)--console series-s, no RT-RayTracing+VICTORY_AMBIENT_RT=2The 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=0changed nothing. The memory stats show around 329 pages per frame with no copy, so my guess is it's the known gaps fromdocs/fork-ray-tracing.md(structures overwriting each other, missing pages read as zero).What fixed it for me: I added
VICTORY_AMBIENT_RT=<multiple>inambient.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=2the 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.dllcrashes on 35 compute pipelines (rip=0x7fffa5431b9f address=0x8). The guard catches it and they end up inwarm-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=1920x1080resolutionFullscreen= 1920x1080 insettings.xmluiResolution= 1920x1080 insettings.xml(was 0x0)None of them helped.
--console series-sgets 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_RTcrates/victory-gpu/src/host.rs: the once-a-secondframe rate:log linescripts/play.ps1: a-SeriesSswitch (there was no way to pass--consolethrough it)Happy to open a PR for any of these if you're interested.
@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:play.ps1(Series X, 4K out)With ray tracing (
VICTORY_AMBIENT_RTbound on), the same setup gets ~22 fps.What each piece is worth
PORT_JOURNALalone: 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_GUARDon 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).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 insettings.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
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,-SeriesSinplay.ps1, theframe rate:log line) as a PR if that's useful.@YOZH3G on GitHub · 2026-11-27 10:28 UTC · original · edited 2026-11-27 10:29 UTC
please could you share changes?
@PikPakPik on GitHub · 2026-11-27 10:32 UTC · original
Sure. My local changes are on this branch (one commit on top of
a-publieras 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@50c7780eWhat it contains:
-SeriesSinscripts/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 needsfidelityfx_dir(orVICTORY_FIDELITYFX_DIR) to point toamd_fidelityfx_upscaler_dx12.dll.VICTORY_AMBIENT_RT=<multiple>(for example2): 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.docs/findings.md).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.@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
a-publierat4eb6cfd, diagnostics build,scripts\play.ps1settings +VICTORY_PORT_JOURNAL=1+VICTORY_PORT_GUARD=1, Series X unless notedVICTORY_MEMORY_CATEGORIES=1) and fromVICTORY_PROFILE1. Memory on 32 GB
book.rs) is on whenever DRED is, whichplay.ps1asks for in diag builds; I haven't measured whether it accounts for this.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-submitthread:shadow::widefor thevictory-wide-*workers, mostly underBatch::refresh_spans(13 %). The workers themselves sit idle 82 % of the time.Host::submit,card_steps::does_of,watch::Held::range,list::detach,behind::take_along.GetWriteWatch(viawatch::ask_run), ~1 % inNtProtectVirtualMemory.3. Tried, no measurable gain
VICTORY_WIDE_SPIN=100VICTORY_PORT_CBV=1VICTORY_WINDOWS_BAR_MB=2048(local patch defaulting it on ≤ 32 GB PCs)For
PORT_CBVand 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_MBonly 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.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_CBVhere), 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_KEYSmakes runs unattended:20:Enter,30:Enter,40:Enter,45:Entertakes 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.
@youssoufrhouzlane-lang on GitHub · 2026-11-27 16:23 UTC · original
please can you help me on discord : ouiiiisamoss
@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::submitit isstarted - called, which covers the lock and alsocard_steps,settle/relay_wait, the start of the heap sync andsweep(). 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 onsubmittedis negligible andsettleis 1 % ofvictory-submit. WhereHost::submit's time goes instead:victory-submitBatch::refresh_spansHost::take_stepsstale_under_flights(mostlyShadow::merge_under_writes)watch::ask_onceRenaming 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 (
Countingdelegating tomimalloc::MiMalloc0.1.52 instead ofSystem; local patch):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:
AI-assisted (Claude Code); no game files.